[Mlir-commits] [mlir] [mlir][Vector] Generate poison vectors in vector.shape_cast lowering (PR #125613)

Andrea Faulds llvmlistbot at llvm.org
Wed Feb 5 06:13:07 PST 2025


================
@@ -83,17 +83,20 @@ func.func @vaddi_reduction(%arg0 : vector<8xi32>, %arg1 : vector<8xi32>) -> (i32
 // CHECK-LABEL: @transpose
 // CHECK-SAME: (%[[ARG0:.+]]: vector<3xi32>, %[[ARG1:.+]]: vector<3xi32>)
 func.func @transpose(%arg0 : vector<2x3xi32>) -> (vector<3x2xi32>) {
-  // CHECK: %[[CST:.*]] = arith.constant dense<0> : vector<2xi32>
+  // CHECK: %[[CST:.*]] = ub.poison : vector<1x2xi32>
----------------
andfau-amd wrote:

It seems there is actually a UB-to-SPIR-V conversion already (https://github.com/llvm/llvm-project/commit/8568921d43b1dc6e273e89397d273aeba375a513), but it's not getting used. I'm going to look into why this is. It's probably something simple like the pass being missing from the pass list.

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


More information about the Mlir-commits mailing list