Re: [x86_64 PATCH] Decrement followed by cmov improvements.

2021-07-30 Thread Uros Bizjak via Gcc-patches
On Mon, Jul 26, 2021 at 1:27 PM Roger Sayle wrote: > > > The following patch to the x86_64 backend improves the code generated > for a decrement followed by a conditional move. The primary change is > to recognize that after subtracting one, checking the result is -1 (or > equivalently that the o

[x86_64 PATCH] Decrement followed by cmov improvements.

2021-07-26 Thread Roger Sayle
The following patch to the x86_64 backend improves the code generated for a decrement followed by a conditional move. The primary change is to recognize that after subtracting one, checking the result is -1 (or equivalently that the original value was zero) can be implemented using the borrow/car