https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118569
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Yep, it's almost the same issue. So it's not only uses on the exit of the inner loop (which would have now misplaced PHIs) but uses inside of the loop as well. We have to scan _all_ blocks of loops whose nesting relationship changes. In fact we already do this in the fix_bb_placements caller of fix_loop_placement.