Skip to content

Commit

Permalink
Don't hoist bit extend
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Wood <ianwood2024@u.northwestern.edu>
  • Loading branch information
IanWood1 committed Jan 30, 2025
1 parent cebecc1 commit dd66e55
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "iree/compiler/Dialect/Encoding/IR/EncodingOps.h"
#include "iree/compiler/Dialect/LinalgExt/IR/LinalgExtDialect.h"
#include "iree/compiler/Dialect/LinalgExt/IR/LinalgExtOps.h"
#include "iree/compiler/Dialect/LinalgExt/Utils/Utils.h"
#include "iree/compiler/Dialect/Util/IR/UtilDialect.h"
#include "iree/compiler/Dialect/Util/IR/UtilOps.h"
#include "iree/compiler/Dialect/Util/IR/UtilTypes.h"
Expand Down Expand Up @@ -340,6 +341,9 @@ struct HoistableLinalgOpInterface
auto genericOp = llvm::dyn_cast<linalg::GenericOp>(op);
if (!genericOp)
return !isa<linalg::FillOp>(op);
if (IREE::LinalgExt::isBitExtendOp(op)) {
return false;
}
// Generally, we prefer to not hoist broadcasts.
// Detect op that only broadcast input as fusing them makes the new
// op cheaper.
Expand Down

0 comments on commit dd66e55

Please sign in to comment.