[Mlir-commits] [mlir] [MLIR][XeGPU][XeVM] Update single element vector type handling. (PR #178558)

Sang Ik Lee llvmlistbot at llvm.org
Thu Jan 29 10:30:34 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()) {
----------------
silee2 wrote:

Updated logic to compare `type` and `vecTy.getElementType()`

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


More information about the Mlir-commits mailing list