[Mlir-commits] [mlir] [mlir][vector] Tighten the semantics of vector.{load|store} (PR #135151)

Benjamin Maxwell llvmlistbot at llvm.org
Fri Apr 11 09:48:09 PDT 2025


================
@@ -17,7 +17,7 @@ func.func @entry() {
   %za_s_size = arith.muli %svl_s, %svl_s : index
 
   // Allocate memory.
-  %mem1 = memref.alloca(%za_s_size) : memref<?xi32>
+  %mem1 = memref.alloca(%za_s_size, %svl_s) : memref<?x?xi32>
----------------
MacDue wrote:

```suggestion
  %mem1 = memref.alloca(%svl_s, %svl_s) : memref<?x?xi32>
```
and remove the `%za_s_size` above this

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


More information about the Mlir-commits mailing list