https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85811 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- case MAX_EXPR: return RECURSE (op0) || RECURSE (op1); This is not true if one is a NAN.