File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
lib/Dialect/XeTile/Transforms Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -750,14 +750,6 @@ class WGToSGVectorBroadcast
750
750
}
751
751
};
752
752
753
-
754
- // TODO: Add more pre-ops
755
- bool isElementWiseOp (mlir::Operation *op) {
756
- return llvm::isa<mlir::arith::AddFOp>(op) ||
757
- llvm::isa<mlir::arith::MulFOp>(op) ||
758
- llvm::isa<mlir::math::ExpOp>(op);
759
- }
760
-
761
753
// Helper function to analyze the def-use chain of initTileOps. Currently we
762
754
// pattern match the following def-use chain as a candidate for
763
755
// load + tranpose optimization.
@@ -813,7 +805,7 @@ void analyzeInitTileOps(mlir::Operation *op) {
813
805
// Check if vector.transpose is consumed by TileMMA directly or
814
806
// is consumed by some pre-op and then TileMMA.
815
807
if (!llvm::isa<imex::xetile::TileMMAOp>(consumerOp)){
816
- if (!isElementWiseOp (consumerOp) &&
808
+ if (!OpTrait::hasElementwiseMappableTraits (consumerOp) &&
817
809
!(llvm::isa<mlir::vector::BroadcastOp>(consumerOp))) {
818
810
return mlir::WalkResult::skip ();
819
811
}
@@ -834,7 +826,6 @@ void analyzeInitTileOps(mlir::Operation *op) {
834
826
});
835
827
}
836
828
837
-
838
829
void populateXeTileWgToSgPatterns (imex::XeOneToNTypeConverter &converter,
839
830
mlir::RewritePatternSet &patterns,
840
831
TileUsageAnalysis &analysis) {
You can’t perform that action at this time.
0 commit comments