reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND insertion.

* reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
	insertion.

From-SVN: r182903
This commit is contained in:
Marcus Shawcroft 2012-01-05 09:45:09 +00:00 committed by Marcus Shawcroft
parent bfeb0869d6
commit 6bfd2688d6
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
* reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
insertion.
2012-01-05 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/51648

View File

@ -4208,7 +4208,12 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known,
&& (!JUMP_P (insn)
|| !label_is_jump_target_p (XEXP (substitution, 0),
insn)))
add_reg_note (insn, REG_LABEL_OPERAND, XEXP (substitution, 0));
{
add_reg_note (insn, REG_LABEL_OPERAND, XEXP (substitution, 0));
if (LABEL_P (XEXP (substitution, 0)))
++LABEL_NUSES (XEXP (substitution, 0));
}
}
else
retval |= (substed_operand[i] != *recog_data.operand_loc[i]);