[llvm] InstCombine: Fold samesign ult to slt with added constant when the range is known (PR #134556)
Rajagopalan Gangadharan via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 21 02:48:57 PDT 2025
================
@@ -3165,9 +3166,13 @@ Instruction *InstCombinerImpl::foldICmpAddConstant(ICmpInst &Cmp,
// If there is overflow, the result must be true or false.
// TODO: Can we assert there is no overflow because InstSimplify always
// handles those cases?
- if (!Overflow)
+ if (!Overflow) {
----------------
RAJAGOPALAN-GANGADHARAN wrote:
Interesting just noticed the tests related to nuw and nsw failing, let me check on this.
https://github.com/llvm/llvm-project/pull/134556
More information about the llvm-commits
mailing list