https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116460
--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> --- Note the real issue is that debug temp insertion cannot handle the situation at all where we remove stmts in the wrong order, thus removing a stmt which has uses that are released.