https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94443
--- Comment #8 from Kewen Lin <linkw at gcc dot gnu.org> --- > > > + remove_phi_node (&gsi, false); > > I prefer to have the PHI removed before you re-use its LHS. > Oops, missed this, will move it back when posting to email list.