aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1997-03-28 22:34:53 +0000
committerDoug Evans <dje@gnu.org>1997-03-28 22:34:53 +0000
commitc9903b4462457ef7cc4d0038a24c14b7770a89f3 (patch)
tree800d0f6eaf66e8353b32eb82c5ee5acf388d9673 /gcc
parent59a64126f8240f6475323663c80a2ea30d026267 (diff)
downloadgcc-c9903b4462457ef7cc4d0038a24c14b7770a89f3.zip
gcc-c9903b4462457ef7cc4d0038a24c14b7770a89f3.tar.gz
gcc-c9903b4462457ef7cc4d0038a24c14b7770a89f3.tar.bz2
combine.c (distribute_notes): Handle REG_BR_PROB and REG_EXEC_COUNT REG_NOTES.
* combine.c (distribute_notes): Handle REG_BR_PROB and REG_EXEC_COUNT REG_NOTES. From-SVN: r13811
Diffstat (limited to 'gcc')
-rw-r--r--gcc/combine.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index df6a322..94fbbab 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -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.