recog.c (split_insn): Copy the original SET_SRC before using it as a note.

gcc/
	* recog.c (split_insn): Copy the original SET_SRC before using
	it as a note.

From-SVN: r190102
This commit is contained in:
Richard Sandiford 2012-08-02 20:44:38 +00:00 committed by Richard Sandiford
parent 8e6ecdc0ad
commit b5b071a568
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
* recog.c (split_insn): Copy the original SET_SRC before using
it as a note.
2012-08-02 Richard Sandiford <rdsandiford@googlemail.com> 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
* reorg.c (dbr_schedule): Delete REG_BR_PRED loop. * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.

View File

@ -2831,7 +2831,8 @@ split_insn (rtx insn)
if (note && CONSTANT_P (XEXP (note, 0))) if (note && CONSTANT_P (XEXP (note, 0)))
set_unique_reg_note (last, REG_EQUAL, XEXP (note, 0)); set_unique_reg_note (last, REG_EQUAL, XEXP (note, 0));
else if (CONSTANT_P (SET_SRC (insn_set))) else if (CONSTANT_P (SET_SRC (insn_set)))
set_unique_reg_note (last, REG_EQUAL, SET_SRC (insn_set)); set_unique_reg_note (last, REG_EQUAL,
copy_rtx (SET_SRC (insn_set)));
} }
} }