[Mlir-commits] [mlir] [MLIR] Add pattern to bubble up tensor.extract_slice (PR #126898)

Andrzej WarzyƄski llvmlistbot at llvm.org
Thu Feb 27 06:40:04 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);
----------------
banach-space wrote:

We should consider removing this flag if it's not needed. Definitely a task fro a separate PR. You can leave a TODO there:
> TODO: It's not clear whether this flag is needed/used. Consider removing in the future.

Up to you :)

https://github.com/llvm/llvm-project/pull/126898


More information about the Mlir-commits mailing list