https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119021
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Vladimir Makarov from comment #3) > (In reply to Jakub Jelinek from comment #2) > > So, either remove that call too, or move it into lra_asm_insn_error before > > the insn has been deleted. Vlad, I'll defer this to you. > > Sorry for the issues with my recent patch. > > Moving to the old code would result in LRA cycling on some wrong asms with > repeating the asm error (e.g. pr55512-3.c). So the solution is not so easy. > I'll work on it. Can't it just look at the present insn and if it is no longer asm but NOTE_INSN_DELETED, ignore it?