[llvm] [X86] ICMP EQ/NE MIN_SIGNED_INT - avoid immediate argument by using NEG + SETO/SETNO (PR #94948)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 06:05:34 PDT 2024


RKSimon wrote:

Yes we could use "cmp %x, 1" for cases where x has additional uses.

What benefits does dec have other neg? I've always used neg but that's mainly as its nearly always been for abs

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


More information about the llvm-commits mailing list