(insert): Set cse_jumps_altered when inserting a LABEL_REF.

From-SVN: r10366
This commit is contained in:
Richard Kenner 1995-09-15 18:24:09 -04:00
parent 7a9b75b671
commit 970c9acebf
1 changed files with 8 additions and 0 deletions

View File

@ -1287,6 +1287,14 @@ insert (x, classp, hash, mode)
SET_HARD_REG_BIT (hard_regs_in_table, i);
}
/* If X is a label, show we are altering jumps. We don't KNOW
we are, but we might be putting it into a insn which would
then need a new REG_LABEL note. Be conservative and say
we alter jumps here; we usually will in this case anyway. */
if (GET_CODE (x) == LABEL_REF
|| (GET_CODE (x) == CONST && GET_CODE (XEXP (x, 0)) == PLUS
&& GET_CODE (XEXP (XEXP (x, 0), 0)) == LABEL_REF))
cse_jumps_altered = 1;
/* Put an element for X into the right hash bucket. */