https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119021
--- Comment #6 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #4) > Can't it just look at the present insn and if it is no longer asm but > NOTE_INSN_DELETED, ignore it? RA keep erroneous asm goto (for keeping CFG correctness), so it can not be deleted as regular asm. RA just removes operands from erroneous asm-goto. To avoid the loop in reporting (we introduced a new loop for pathological case of PR115458 and asm-goto now can be processed repeatedly) we need to invalidate some LRA internal (or cached) data and it was done not for all data. The patch I've just committed is now doing this.