[Mlir-commits] [mlir] [mlir][affine] Fix replaceAllMemRefUsesWith failing on memref.load/store (PR #217833)

Longsheng Mou llvmlistbot at llvm.org
Sun Sep 6 06:38:28 PDT 2026


================
@@ -1356,8 +1356,10 @@ LogicalResult mlir::affine::replaceAllMemRefUsesWith(
 
     // Check if the memref was used in a non-dereferencing context. It is fine
     // for the memref to be used in a non-dereferencing way outside of the
-    // region where this replacement is happening.
-    if (!isa<AffineMapAccessInterface>(*user)) {
+    // region where this replacement is happening. Note: memref.load/store are
+    // dereferencing ops even though they don't implement
+    // AffineMapAccessInterface.
----------------
CoTinker wrote:

Thanks.

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


More information about the Mlir-commits mailing list