[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:48 PDT 2026
================
@@ -495,3 +495,32 @@ func.func @multiple_blocks(%arg0: index) -> memref<1x2x1xi32> {
^bb3: // pred: ^bb1
return %1 : memref<1x2x1xi32>
}
+
+// -----
+
+// Test that memref.store on the same memref as affine.load/store doesn't
+// cause replaceAllMemRefUsesWith to fail. Before the fix, memref.store
+// (which doesn't implement AffineMapAccessInterface) caused the entire
+// memref replacement to fail silently, leaving the fast buffer uninitialized.
----------------
CoTinker wrote:
Thanks.
https://github.com/llvm/llvm-project/pull/217833
More information about the Mlir-commits
mailing list