Re: [PATCH] Add a != MIN/MAX_VALUE_CST ? CST-+1 : a to minmax_from_comparison

2023-05-30 Thread Richard Biener via Gcc-patches
On Mon, May 8, 2023 at 7:27 AM Andrew Pinski via Gcc-patches wrote: > > This patch adds the support for match that was implemented for PR 87913 in > phiopt. > It implements it by adding support to minmax_from_comparison for the check. > It uses the range information if available which allows to

[PATCH] Add a != MIN/MAX_VALUE_CST ? CST-+1 : a to minmax_from_comparison

2023-05-07 Thread Andrew Pinski via Gcc-patches
This patch adds the support for match that was implemented for PR 87913 in phiopt. It implements it by adding support to minmax_from_comparison for the check. It uses the range information if available which allows to produce MIN/MAX expression when comparing against the lower/upper bound of the