https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115474
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot
gnu.org
CC| |pinskia at gcc dot gnu.org
Last reconfirmed| |2024-06-13
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, there are at least 2 forms that need to be optimized (note MIN/MAX
here is gone already due to zero_one optimizations):
-O2:
_2 = b_5(D) < a_7(D); // a & !b
_1 = _2 < a_7(D); // !(a & !b) & a -> (!a | b) & a -> a & b
_8 = _1 | _2; // (a & b) | (a & !b) -> a
-O1:
_2 = b_4(D) < a_7(D); // a & !b
_6 = _2 | a_7(D); // (a & !b) | a -> a
Let me handle those.
Note there is some more with <=/>/>= too.