combine.c (distribute_notes): Handle REG_BR_PROB and REG_EXEC_COUNT REG_NOTES.
authorDoug Evans <dje@gnu.org>
Fri, 28 Mar 1997 22:34:53 +0000 (22:34 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 28 Mar 1997 22:34:53 +0000 (22:34 +0000)
* combine.c (distribute_notes): Handle REG_BR_PROB and REG_EXEC_COUNT
REG_NOTES.

From-SVN: r13811

gcc/combine.c

index df6a3228242abc194b18080454456f50cf97f073..94fbbab22aa23dc61ef6cad4c8404fdd7901e95d 100644 (file)
@@ -10985,6 +10985,14 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
       next_note = XEXP (note, 1);
       switch (REG_NOTE_KIND (note))
        {
+       case REG_BR_PROB:
+       case REG_EXEC_COUNT:
+         /* Doesn't matter much where we put this, as long as it's somewhere.
+            It is preferable to keep these notes on branches, which is most
+            likely to be i3.  */
+         place = i3;
+         break;
+
        case REG_UNUSED:
          /* Any clobbers for i3 may still exist, and so we must process
             REG_UNUSED notes from that insn.