[Mlir-commits] [mlir] [MLIR] Add pattern to bubble up tensor.extract_slice (PR #126898)
Quinn Dawkins
llvmlistbot at llvm.org
Tue Feb 25 09:07:03 PST 2025
================
@@ -582,6 +582,7 @@ transform::FuseOp::apply(transform::TransformRewriter &rewriter,
RewritePatternSet patterns(context);
tensor::ExtractSliceOp::getCanonicalizationPatterns(patterns, context);
tensor::populateMergeConsecutiveInsertExtractSlicePatterns(patterns);
+ tensor::populateBubbleUpExtractSliceOpPatterns(patterns);
----------------
qedawkins wrote:
Unless someone has a strong concern about this particular API detail, I just see `cleanup` as naming for "useful intermediate patterns," which this pattern I feel does apply to. Like noted, this is the intended API anyway, so the other solution would be to add another flag to `transform.structured.fuse`.
https://github.com/llvm/llvm-project/pull/126898
More information about the Mlir-commits
mailing list