Commit 9295a326 by Josef Zlomek Committed by Josef Zlomek

cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.

	PR/10239
	* cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.

From-SVN: r73145
parent 739e6d58
2003-10-31 Josef Zlomek <zlomekj@suse.cz> 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
PR/10239
* cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
2003-10-31 Josef Zlomek <zlomekj@suse.cz>
PR/11640 PR/11640
* cfgrtl.c (try_redirect_by_replacing_jump): Move jump * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
immediatelly before BARRIER. immediatelly before BARRIER.
......
...@@ -156,9 +156,15 @@ delete_insn (rtx insn) ...@@ -156,9 +156,15 @@ delete_insn (rtx insn)
LABEL_NUSES (JUMP_LABEL (insn))--; LABEL_NUSES (JUMP_LABEL (insn))--;
/* Also if deleting an insn that references a label. */ /* Also if deleting an insn that references a label. */
else if ((note = find_reg_note (insn, REG_LABEL, NULL_RTX)) != NULL_RTX else
&& GET_CODE (XEXP (note, 0)) == CODE_LABEL) {
LABEL_NUSES (XEXP (note, 0))--; while ((note = find_reg_note (insn, REG_LABEL, NULL_RTX)) != NULL_RTX
&& GET_CODE (XEXP (note, 0)) == CODE_LABEL)
{
LABEL_NUSES (XEXP (note, 0))--;
remove_note (insn, note);
}
}
if (GET_CODE (insn) == JUMP_INSN if (GET_CODE (insn) == JUMP_INSN
&& (GET_CODE (PATTERN (insn)) == ADDR_VEC && (GET_CODE (PATTERN (insn)) == ADDR_VEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment