[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
Mon Dec 1 00:32:43 PST 2025


wermos wrote:

> so we should try both, with a preference for unsigned.

Is there a reason we give higher priority to the case where the add is unsigned?

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


More information about the llvm-commits mailing list