Re: [PATCH 7/7] MATCH: Add patterns from phiopt's minmax_replacement

2023-04-27 Thread Richard Biener via Gcc-patches
On Mon, Apr 24, 2023 at 11:33 PM Andrew Pinski via Gcc-patches wrote: > > This adds a few patterns from phiopt's minmax_replacement > for (A CMP B) ? MIN/MAX : MIN/MAX . > It is progress to remove minmax_replacement from phiopt. > There are still some more cases dealing with constants on the > ed

[PATCH 7/7] MATCH: Add patterns from phiopt's minmax_replacement

2023-04-24 Thread Andrew Pinski via Gcc-patches
This adds a few patterns from phiopt's minmax_replacement for (A CMP B) ? MIN/MAX : MIN/MAX . It is progress to remove minmax_replacement from phiopt. There are still some more cases dealing with constants on the edges (0/INT_MAX) to handle in match. OK? Bootstrapped and tested on x86_64-linux-gn