https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70326
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 #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 38047 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38047&action=edit gcc6-pr70326.patch So do you mean something like this? Or check !INSN_P instead of checking for NOTE_P && NOTE_INSN_DELETED? Something different?