Re: [x86 PATCH] PR target/92578: Peephole2s to tweak cmove register allocation.

2022-04-26 Thread Uros Bizjak via Gcc-patches
On Mon, Apr 25, 2022 at 1:16 PM Roger Sayle wrote: > > > This patch addresses a (minor) missed-optimization regression revealed > by Richard Biener's example/variant in comment #1 of PR target/92578. > > int foo(int moves, int movecnt, int komove) { > int newcnt = movecnt; > if (moves == k

[x86 PATCH] PR target/92578: Peephole2s to tweak cmove register allocation.

2022-04-25 Thread Roger Sayle
This patch addresses a (minor) missed-optimization regression revealed by Richard Biener's example/variant in comment #1 of PR target/92578. int foo(int moves, int movecnt, int komove) { int newcnt = movecnt; if (moves == komove) newcnt -= 2; return newcnt; } Comparing code g