[llvm] [X86] ICMP EQ/NE MIN_SIGNED_INT - avoid immediate argument by using NEG + SETO/SETNO (PR #94948)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 06:18:51 PDT 2024
aengelke wrote:
> What benefits does dec have other neg?
None. My thinking was just that cmp x,1 for the last use of x could be combined later into dec when code size is important (-Os?) whereas for neg the distinction needs to be made here (sub 0,x vs sub x,1).
https://github.com/llvm/llvm-project/pull/94948
More information about the llvm-commits
mailing list