https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71881
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This is during ldist, destroy_loop removes a loop which contains a PHI that is used by a debug stmt used after the loop, and during rewrite_into_loop_closed_ssa this is detected and ICEs.