https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101024
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #0) > You will notice this is not caught by phiopt1 even though it should be while > it is caught now (on the trunk) by phiopt2 (match-and-simplify). That is > the minmax_replacement does not handle the above case but match does. This is now caught after r12-2185 but we have not moved minmax_replacement yet, just got match-and-simplify working correctly on early phiopt (phiopt1).