Re: [PATCH] i386: Rewrite ieee_minmax pattern with if_then_else

2024-11-15 Thread Hongyu Wang
Jakub Jelinek 于2024年11月15日周五 16:20写道: > > On Fri, Nov 15, 2024 at 04:04:55PM +0800, Hongyu Wang wrote: > > Following the discussion in pr116738, the insn for UNSPEC_IEEE_MAXMIN > > actually matches the behavior of if_then_else, so remove the UNSPEC and > > rewrite related pattern with if_then_else

Re: [PATCH] i386: Rewrite ieee_minmax pattern with if_then_else

2024-11-15 Thread Jakub Jelinek
On Fri, Nov 15, 2024 at 04:04:55PM +0800, Hongyu Wang wrote: > Following the discussion in pr116738, the insn for UNSPEC_IEEE_MAXMIN > actually matches the behavior of if_then_else, so remove the UNSPEC and > rewrite related pattern with if_then_else. I'm not sure if it is necessarily always a win

[PATCH] i386: Rewrite ieee_minmax pattern with if_then_else

2024-11-15 Thread Hongyu Wang
Hi, Following the discussion in pr116738, the insn for UNSPEC_IEEE_MAXMIN actually matches the behavior of if_then_else, so remove the UNSPEC and rewrite related pattern with if_then_else. Bootstrapped & regtested on x86-64-pc-linux-gnu. Ok for trunk? gcc/ChangeLog: * config/i386/i386-