[Mlir-commits] [mlir] [MLIR][vector] vector.deinterleave to vector.shuffle decomposition (PR #177897)

Andrzej WarzyƄski llvmlistbot at llvm.org
Wed Apr 29 06:04:07 PDT 2026


================
@@ -7,13 +7,53 @@ func.func @vector_interleave_to_shuffle(%a: vector<7xi16>, %b: vector<7xi16>) ->
 }
 // CHECK: vector.shuffle %arg0, %arg1 [0, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13] : vector<7xi16>, vector<7xi16>
 
+// CHECK-LABEL: @vector_interleave_0d
+func.func @vector_interleave_0d(%a: vector<f32>, %b: vector<f32>) -> vector<2xf32> {
+  %0 = vector.interleave %a, %b : vector<f32> -> vector<2xf32>
+  return %0 : vector<2xf32>
+}
+// CHECK: vector.shuffle %arg0, %arg1 [0, 1] : vector<f32>, vector<f32>
+
+// CHECK-LABEL: @vector_deinterleave_to_shuffle
+func.func @vector_deinterleave_to_shuffle(%arg0: vector<14xi16>) -> (vector<7xi16>, vector<7xi16>) {
----------------
banach-space wrote:

```suggestion
func.func @vector_deinterleave_to_shuffle_1d(%arg0: vector<14xi16>) -> (vector<7xi16>, vector<7xi16>) {
```

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


More information about the Mlir-commits mailing list