https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117385
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note fold_build_cond_expr in tree-ifconv.cc also does this same thing. Though in that case we won't need the comparison afterwards.