[Mlir-commits] [mlir] [mlir][spirv] Fix crash in ArithToSPIRV trunc-i lowering on tensor types (PR #179009)

Samarth Narang llvmlistbot at llvm.org
Mon Feb 2 08:52:59 PST 2026


================
@@ -726,15 +723,15 @@ struct ExtSIPattern final : public OpConversionPattern<arith::ExtSIOp> {
       return failure();
 
     // extSI is only meaningful for integer scalar/vector types in SPIR-V.
-    if (!isIntScalarOrVectorType(srcType))
+    if (!isScalarOrVectorOfScalar(srcType))
----------------
snarang181 wrote:

i1 is considered a Spirv scalar. https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp#L545

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


More information about the Mlir-commits mailing list