https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110532
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
phiopt match-simplify trying:
_3 > 1 ? 1 : _4
Matching expression match.pd:1991, gimple-match-5.cc:23
Matching expression match.pd:1991, gimple-match-5.cc:23
Applying pattern match.pd:4743, gimple-match-1.cc:16227
Folded into the sequence:
_12 = _3 > 1;
_19 = (unsigned char) _12;
_21 = _4 | _19;
statement un-sinked:
_4 = MAX_EXPR <_3, 1>;
# RANGE [irange] unsigned char [1, 1] NONZERO 0x1
_4 = MAX_EXPR <_3, 1>;
Funny this is also a missed optimization in dom3.
Dup of bug 110252 (the missed optmization is a dup of bug 110410)
*** This bug has been marked as a duplicate of bug 110252 ***