https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111331
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- For the trunk: ``` phiopt match-simplify trying: _3 > 28 ? _9 : 29 Applying pattern match.pd:5446, gimple-match-3.cc:3125 phiopt match-simplify back: _5 = MAX_EXPR <_9, 29>; result: _5 accepted the phiopt match-simplify. statement un-sinked: _9 = MIN_EXPR <_3, 28>; ``` IR before the first phiopt: ``` if (_3 <= 28) goto <bb 4>; [34.00%] else goto <bb 3>; [66.00%] <bb 3> : _9 = MIN_EXPR <_3, 28>; <bb 4> : # _14 = PHI <29(2), _9(3)> ``` There is a mix match between the 29 and the 28 here ...