On 8/13/2021 6:19 PM, apinski--- via Gcc-patches wrote:
From: Andrew Pinski <apin...@marvell.com>

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 types.

gcc/testsuite/ChangeLog:

        * gcc.dg/tree-ssa/bool-12.c: New test.
OK
jeff

Reply via email to