if (debug_ignore_block (NOTE_BLOCK (insn))) { - BLOCK_DEAD (NOTE_BLOCK (insn)) = 1; remove_insn (tmp); remove_insn (insn); } Note that this is clearly incorrect since we have deleted the notes delimiting a BLOCK but have done nothing to the block node.