From: Richard Kenner Date: Thu, 26 Oct 1995 22:11:32 +0000 (-0400) Subject: (distribute_notes): For Oct 19 change, add additional check to verify X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a89088491643926984b58ed8d7349de5b80d5c30;p=gcc.git (distribute_notes): For Oct 19 change, add additional check to verify that place has a valid INSN_CUID. From-SVN: r10520 --- diff --git a/gcc/combine.c b/gcc/combine.c index a7d6ff4d721..323db6b0676 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -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))) {