[Mlir-commits] [mlir] [mlir][affine] Fix crash in linearize/delinearize fold when basis is ub.poison (PR #185058)
Matthias Springer
llvmlistbot at llvm.org
Mon Mar 9 01:41:27 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)) {
----------------
matthias-springer wrote:
The old and new implementation look very similar to me. Why is this fixing the crash? What is the type of `basis` here?
https://github.com/llvm/llvm-project/pull/185058
More information about the Mlir-commits
mailing list