https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116835
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Or maybe for back edges, only handle the case where the phi and the use are in the same BB if we are going to add a new phi, if we are going to reuse the phi then we can just use that. Let me program that up this afternoon and see how complex it will get.