[Mlir-commits] [mlir] [mlir][Vector] Remove more special case uses for extractelement/insertelement (PR #130166)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Mon Mar 10 03:35:11 PDT 2025
================
@@ -187,7 +187,7 @@ func.func @broadcast_vec2d_from_vec0d(%arg0: vector<f32>) -> vector<3x2xf32> {
// CHECK: %[[T0:.*]] = builtin.unrealized_conversion_cast %[[A]] : vector<f32> to vector<1xf32>
// CHECK: %[[T1:.*]] = ub.poison : vector<3x2xf32>
// CHECK: %[[T2:.*]] = builtin.unrealized_conversion_cast %[[T1]] : vector<3x2xf32> to !llvm.array<3 x vector<2xf32>>
-// CHECK: %[[T4:.*]] = llvm.mlir.constant(0 : index) : i64
+// CHECK: %[[T4:.*]] = llvm.mlir.constant(0 : i64) : i64
----------------
banach-space wrote:
Just double-checking, I don't see anything in this PR that would change this type?
In practice, `index`, IIRC, will be lowered to either `i64` or `i32`, but that's not guaranteed. There's also a PR to extend the related logic: https://github.com/llvm/llvm-project/pull/115808
Now, this PR is somewhat tangential to the lowering of `index`. Just pointing out that this is likely a corner case that might require re-visiting.
https://github.com/llvm/llvm-project/pull/130166
More information about the Mlir-commits
mailing list