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

Jakub Kuderski llvmlistbot at llvm.org
Mon Feb 2 09:49:29 PST 2026


================
@@ -919,6 +982,22 @@ struct TypeCastingOpPattern final : public OpConversionPattern<Op> {
     if (isBoolScalarOrVector(srcType) || isBoolScalarOrVector(dstType))
       return failure();
 
+    auto isIntOrFloatScalarOrVectorNotI1 = [](Type type) {
----------------
kuhar wrote:

Why can't use use `isScalarOrVectorOfScalar`?

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


More information about the Mlir-commits mailing list