Re: [PATCH 4/7] MIN/MAX should be treated similar as comparisons for trapping

2023-04-27 Thread Richard Biener via Gcc-patches
On Mon, Apr 24, 2023 at 11:31 PM Andrew Pinski via Gcc-patches wrote: > > While looking into moving optimizations from minmax_replacement > in phiopt to match.pd, I Noticed that min/max were considered > trapping even if -ffinite-math-only was being used. This changes > those expressions to be sim

[PATCH 4/7] MIN/MAX should be treated similar as comparisons for trapping

2023-04-24 Thread Andrew Pinski via Gcc-patches
While looking into moving optimizations from minmax_replacement in phiopt to match.pd, I Noticed that min/max were considered trapping even if -ffinite-math-only was being used. This changes those expressions to be similar as comparisons so that they are not considered trapping if -ffinite-math-onl