[Mlir-commits] [mlir] [MLIR][XeGPU][XeVM] Update single element vector type handling. (PR #178558)
Artem Kroviakov
llvmlistbot at llvm.org
Thu Jan 29 02:20:14 PST 2026
================
@@ -1190,10 +1190,19 @@ struct ConvertXeGPUToXeVMPass
return {};
auto input = inputs.front();
if (auto vecTy = dyn_cast<VectorType>(input.getType())) {
- if (vecTy.getNumElements() == 1) {
- // If the vector has a single element, return the element type.
- Value cast =
- vector::ExtractOp::create(builder, loc, input, 0).getResult();
+ if (type.isIntOrIndexOrFloat()) {
----------------
akroviakov wrote:
Why does the element type matter? What if it is some dialect-specific type?
https://github.com/llvm/llvm-project/pull/178558
More information about the Mlir-commits
mailing list