[llvm] [InstCombine] Improve range computation in `foldICmpAddConstant` (PR #155096)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 23 13:33:30 PDT 2025


https://github.com/nikic approved this pull request.

LGTM. The correctness of this code depends on trunc nuw on ConstantRange being exact, which ConstantRange APIs usually do not promise. It may make sense to document it as an API guarantee.

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


More information about the llvm-commits mailing list