[Mlir-commits] [mlir] [mlir] Fix integer overflow in ShapedType::getNumElements and `makeCanonicalStridedLayoutExpr` (PR #178395)

Mehdi Amini llvmlistbot at llvm.org
Fri Jan 30 07:21:16 PST 2026


joker-eph wrote:

> Reject IR where the number of elements does not fit into int64_t in the verifier + parser.

My concern with this is that now all the code that manipulates shapes in a way that can expose statically this information has to be defensive in order to not break the verifier...

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


More information about the Mlir-commits mailing list