Re: [PATCH] i386: Add new pattern for zero-extend cmov

2023-04-19 Thread Uros Bizjak via Gcc-patches
On Wed, Apr 19, 2023 at 1:33 AM Andrew Pinski via Gcc-patches wrote: > > After a phiopt change, I got a failure of cmov9.c. > The RTL IR has zero_extend on the outside of > the if_then_else rather than on the side. Both > ways are considered canonical as mentioned in > PR 66588. > > This fixes the

[PATCH] i386: Add new pattern for zero-extend cmov

2023-04-18 Thread Andrew Pinski via Gcc-patches
After a phiopt change, I got a failure of cmov9.c. The RTL IR has zero_extend on the outside of the if_then_else rather than on the side. Both ways are considered canonical as mentioned in PR 66588. This fixes the failure I got and also adds a testcase which fails before even my phiopt patch but w