[Mlir-commits] [mlir] [MLIR][Affine] Fix private memref creation bug in affine fusion (PR #126028)

Arnab Dutta llvmlistbot at llvm.org
Fri Feb 7 01:28:51 PST 2025


================
@@ -285,3 +285,32 @@ module {
     spirv.ReturnValue %3 : !spirv.array<8192 x f32>
   }
 }
+
+// -----
+
+// PRODUCER-CONSUMER-LABEL: func @same_memref_load_store
+func.func @same_memref_load_store(%producer : memref<32xf32>, %consumer: memref<16xf32>){
----------------
arnab-polymage wrote:

Can you add an example with multiple producer stores then? You have replaced `scrStoreOpInst` with `storeOps`  in argument list of `createPrivateMemRef` function. A unit test reflecting this change will be helpful.

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


More information about the Mlir-commits mailing list