[llvm] [DA] Fix overflow of findBoundsALL in BanerjeeTest (PR #191232)
Ruoyu Qiu via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 09:09:28 PDT 2026
https://github.com/cabbaken created https://github.com/llvm/llvm-project/pull/191232
Fix signed overflow handling in `findBoundsALL` for the Banerjee test.
The previous implementation computed bounds using `getMinusSCEV` and
`getMulExpr` without checking for signed overflow, which could produce
incorrect bounds when coefficients have extreme values.
- Add `mulSCEVNoSignedOverflow` helper function that checks for
multiplication overflow before computing the result
- Use `minusSCEVNoSignedOverflow` and `mulSCEVNoSignedOverflow` in
`findBoundsALL` to safely compute bounds, returning `nullptr`
when overflow would occur
The server is unavailable at this time. Please wait a few minutes before you try again.
More information about the llvm-commits
mailing list