[Mlir-commits] [mlir] [mlir] Add vector.{to_elements, from_elements} unrolling to `unrollVectorsInFuncBodies` (PR #159118)

Erick Ochoa Lopez llvmlistbot at llvm.org
Tue Sep 16 09:16:58 PDT 2025


================
@@ -96,3 +96,47 @@ func.func @transpose(%arg0 : vector<2x3xi32>) -> (vector<3x2xi32>) {
   %0 = vector.transpose %arg0, [1, 0] : vector<2x3xi32> to vector<3x2xi32>
   return %0 : vector<3x2xi32>
 }
+
----------------
amd-eochoalo wrote:

It looks like these are the only tests that check for unrolling, although it does not check the conversion from vector to spirv, it just checks that the unrolling was applied. We could also start a new file that runs `test-convert-to-spirv` with `run-vector-unrolling=true` as an integration test.

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


More information about the Mlir-commits mailing list