[Mlir-commits] [mlir] [mlir][affine] Fix crash in linearize/delinearize fold when basis is ub.poison (PR #185058)

Mehdi Amini llvmlistbot at llvm.org
Mon Mar 9 04:45:36 PDT 2026


================
@@ -4942,7 +4942,7 @@ foldCstValueToCstAttrBasis(ArrayRef<OpFoldResult> mixedBasis,
     // them from the dynamic operands would create an inconsistency between
     // the static basis (which would still hold kDynamic) and the dynamic
     // operand list (which would be one element shorter).
-    if (basis && isa<IntegerAttr>(basis)) {
+    if (basis && !isa<ub::PoisonAttr>(basis)) {
----------------
joker-eph wrote:

Actually I fixed it in b3be782c4d149d9f9fd4dbf0452db0af451bd1a2 and later rebased this which was an independent fix...

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


More information about the Mlir-commits mailing list