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

Andrzej WarzyƄski llvmlistbot at llvm.org
Fri Feb 14 04:52:24 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:

IIUC, this transformation is "unblocking" tiling. As such, it feels much more impactful than merely "cleaning up".

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


More information about the Mlir-commits mailing list