(distribute_notes): For Oct 19 change, add additional check to verify

that place has a valid INSN_CUID.

From-SVN: r10520
This commit is contained in:
Richard Kenner 1995-10-26 18:11:32 -04:00
parent a128ef196d
commit a890884916
1 changed files with 2 additions and 1 deletions

View File

@ -10790,7 +10790,8 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
i2 but does not die in i2, and place is between i2
and i3, then we may need to move a link from place to
i2. */
if (i2 && INSN_CUID (place) > INSN_CUID (i2)
if (i2 && INSN_UID (place) <= max_uid_cuid
&& INSN_CUID (place) > INSN_CUID (i2)
&& from_insn && INSN_CUID (from_insn) > INSN_CUID (i2)
&& reg_referenced_p (XEXP (note, 0), PATTERN (i2)))
{