[Mlir-commits] [mlir] [MLIR][Spirv] Don't lower tensors that can't be represented by an ArrayType (PR #171002)
Stefan Weigl-Bosker
llvmlistbot at llvm.org
Sun Dec 7 12:33:07 PST 2025
================
@@ -502,6 +502,11 @@ static Type convertTensorType(const spirv::TargetEnv &targetEnv,
<< type << " illegal: cannot handle zero-element tensors\n");
return nullptr;
}
+ if (arrayElemCount > std::numeric_limits<unsigned>::max()) {
----------------
sweiglbosker wrote:
I think this is actually the accurate way to do things, as `ArrayType.elementCount` is an `unsigned`.
https://github.com/llvm/llvm-project/pull/171002
More information about the Mlir-commits
mailing list