On 8/13/2021 6:19 PM, apinski--- via Gcc-patches wrote:
From: Andrew Pinski
I noticed this while Richard B. fixing PR101756.
Basically min of two bools is the same as doing an "and"
and max of two bools is doing an "ior".
gcc/ChangeLog:
* match.pd: Add min/max patterns for bool typ
On Sat, Aug 14, 2021 at 2:21 AM apinski--- via Gcc-patches
wrote:
>
> From: Andrew Pinski
>
> I noticed this while Richard B. fixing PR101756.
> Basically min of two bools is the same as doing an "and"
> and max of two bools is doing an "ior".
But that's only true for unsigned vals. For signed