[llvm] [InstCombine] Fold `icmp samesign u{gt/ge/lt/le} (X +nsw C2), C` -> `icmp s{gt/ge/lt/le} X, (C - C2)` (PR #169960)

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 29 01:48:43 PST 2025


================

----------------
andjo403 wrote:

this is the fold that can be adapted or at least the body of the if is similar to what you need to do

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


More information about the llvm-commits mailing list