[Mlir-commits] [mlir] [MLIR][Vector] Add unrolling support for bitcast, interleave, and deinterleave ops (PR #194513)

Andrzej WarzyƄski llvmlistbot at llvm.org
Tue Apr 28 04:56:05 PDT 2026


================
@@ -667,3 +667,75 @@ func.func @shape_cast_with_all_unit_target_shape(%v: vector<2xf32>) -> vector<2x
 // CHECK:   %[[SC1:.*]] = vector.shape_cast %[[S1]] : vector<1xf32> to vector<1x1xf32>
 // CHECK:   %[[I1:.*]] = vector.insert_strided_slice %[[SC1]], %[[I0]] {offsets = [1, 0], strides = [1, 1]} : vector<1x1xf32> into vector<2x1xf32>
 // CHECK:   return %[[I1]] : vector<2x1xf32>
+
+// -----
+
+// Test BitCastOp unrolling - target shape [4, 4]
+func.func @bitcast_unroll(%arg0: vector<8x4xf32>) -> vector<8x8xi16> {
----------------
banach-space wrote:

For consistency with other tests, use `%v` for the input arguments.
```suggestion
func.func @bitcast_unroll(%v: vector<8x4xf32>) -> vector<8x8xi16> {
```

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


More information about the Mlir-commits mailing list