[Mlir-commits] [mlir] [mlir][spirv] Handle vectors of integers of unsupported width (PR #118663)

Andrea Faulds llvmlistbot at llvm.org
Wed Dec 4 08:30:57 PST 2024


================
@@ -348,6 +353,9 @@ convertVectorType(const spirv::TargetEnv &targetEnv,
     }
 
     Type elementType = convertSubByteIntegerType(options, intType);
+    if (!elementType)
+      return nullptr;
----------------
andfau-amd wrote:

The bug is that previously, it was assumed that if we entered this code path, the integer type was unsupported because of being sub-byte, but it might be unsupported for some other reason?

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


More information about the Mlir-commits mailing list