[llvm] [InstCombine] Fold `icmp samesign u{gt/lt} (X +nsw C2), C` -> `icmp s{gt/lt} X, (C - C2)` (PR #169960)
Tirthankar Mazumder via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 5 08:05:43 PST 2025
================
@@ -3167,7 +3167,7 @@ Instruction *InstCombinerImpl::foldICmpAddConstant(ICmpInst &Cmp,
// If the add does not wrap, we can always adjust the compare by subtracting
// the constants. Equality comparisons are handled elsewhere. SGE/SLE/UGE/ULE
- // are canonicalized to SGT/SLT/UGT/ULT.
+ // has been canonicalized to SGT/SLT/UGT/ULT.
----------------
wermos wrote:
Done.
https://github.com/llvm/llvm-project/pull/169960
More information about the llvm-commits
mailing list