[Mlir-commits] [mlir] [mlir][test] Fix crash in TestWithBoundsOp with mismatched attribute width (PR #184093)
Mehdi Amini
llvmlistbot at llvm.org
Wed Mar 4 04:29:33 PST 2026
================
@@ -878,7 +878,30 @@ LogicalResult TestVerifiersOp::verifyRegions() {
void TestWithBoundsOp::inferResultRanges(ArrayRef<ConstantIntRanges> argRanges,
SetIntRangeFn setResultRanges) {
- setResultRanges(getResult(), {getUmin(), getUmax(), getSmin(), getSmax()});
+ APInt umin = getUmin(), umax = getUmax(), smin = getSmin(), smax = getSmax();
+ // Ensure the APInt widths match the result type's expected storage width.
----------------
joker-eph wrote:
Updated, PTAL @krzysz00
https://github.com/llvm/llvm-project/pull/184093
More information about the Mlir-commits
mailing list