https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80436
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 41225 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41225&action=edit gcc7-pr80436.patch Untested fix. Seems debug stmts are generally an exception from loop closed SSA form, we already have: if (is_gimple_debug (stmt)) return; in find_uses_to_rename_stmt and check_loop_closed_ssa_stmt, just not at this spot.