https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120533
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Actually this one is odd. Re-reading the phi-opt code cselim should handle this always . I guess I need to look into this further. Though we should do a limited form of cselim as part of phiopt anyways.