[Mlir-commits] [mlir] [mlir] Allow folding dynamic full size subviews (PR #140619)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed May 21 06:49:29 PDT 2025


================
@@ -3206,7 +3215,7 @@ class TrivialSubViewOpFolder final : public OpRewritePattern<SubViewOp> {
 
   LogicalResult matchAndRewrite(SubViewOp subViewOp,
                                 PatternRewriter &rewriter) const override {
-    if (!isTrivialSubViewOp(subViewOp))
+    if (!isTrivialSubViewOp(rewriter, subViewOp))
       return failure();
----------------
Max191 wrote:

We have an interface that does what I need in downstream IREE, actually. It is like reifyResultShapes, but "read only", as in, it doesn't create new IR. I am going to close this PR and handle this downstream for the time being, since I don't see a great way to do this here in MLIR.

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


More information about the Mlir-commits mailing list