[Mlir-commits] [mlir] [mlir][vector] Add unroll patterns for vector.load and vector.store (PR #143420)

Andrzej WarzyƄski llvmlistbot at llvm.org
Tue Jun 10 10:49:14 PDT 2025


================
@@ -378,3 +378,76 @@ func.func @vector_broadcast_with_tailing_unit_dim(%v: vector<4x1xf32>) -> vector
 //       CHECK: [[b3:%.+]] = vector.broadcast [[s3]] : vector<2x1xf32> to vector<2x2xf32>
 //       CHECK: [[r3:%.+]] = vector.insert_strided_slice [[b3]], [[r2]] {offsets = [2, 2], strides = [1, 1]} : vector<2x2xf32> into vector<4x4xf32>
 //       CHECK: return [[r3]] : vector<4x4xf32>
+
+
+// CHECK-LABEL: func.func @unroll_2D_vector_load(
+// CHECK-SAME:  %[[ARG:.*]]: memref<4x4xf16>) -> vector<4x4xf16> {
----------------
banach-space wrote:

Please format the CHECK lines consistently with the previous tests. Specifically, 

```mlir
func.func @test_func() {
 // ...
}

// CHECK-LABEL: ...
// CHECK-SAME: ...
...
```

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


More information about the Mlir-commits mailing list