(distribute_notes): For Oct 19 change, add additional check to verify
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 26 Oct 1995 22:11:32 +0000 (18:11 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 26 Oct 1995 22:11:32 +0000 (18:11 -0400)
that place has a valid INSN_CUID.

From-SVN: r10520

gcc/combine.c

index a7d6ff4d721c9f6221f50742132758224bfc134b..323db6b0676f8dbc803fee5f7697cd8114b137f5 100644 (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)))
                      {