summaryrefslogtreecommitdiff
path: root/gcc/sel-sched-ir.c
diff options
context:
space:
mode:
authoramonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-14 11:25:25 +0000
committeramonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-14 11:25:25 +0000
commit3baa98a042eb61bcf13459b335c47ae372ec9552 (patch)
treefc2c496414a3ff4b62659268cddf82c38f0008bf /gcc/sel-sched-ir.c
parent6a6a03b472c230daf49b8cf3b2985351ab154264 (diff)
downloadgcc-3baa98a042eb61bcf13459b335c47ae372ec9552.tar.gz
2010-01-14 Alexander Monakov <amonakov@ispras.ru>
* sel-sched-ir.c (sel_restore_other_notes): Rename to sel_restore_notes. Update all callers. Call reemit_notes for all insns. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155901 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sel-sched-ir.c')
-rw-r--r--gcc/sel-sched-ir.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c
index 05df3340f52..29ce554c3f1 100644
--- a/gcc/sel-sched-ir.c
+++ b/gcc/sel-sched-ir.c
@@ -4417,11 +4417,12 @@ sel_init_bbs (bb_vec_t bbs, basic_block bb)
sched_scan (&ssi, bbs, bb, new_insns, NULL);
}
-/* Restore other notes for the whole region. */
+/* Restore notes for the whole region. */
static void
-sel_restore_other_notes (void)
+sel_restore_notes (void)
{
int bb;
+ insn_t insn;
for (bb = 0; bb < current_nr_blocks; bb++)
{
@@ -4436,6 +4437,10 @@ sel_restore_other_notes (void)
restore_other_notes (NULL, first);
BB_NOTE_LIST (first) = NULL_RTX;
+ FOR_BB_INSNS (first, insn)
+ if (NONDEBUG_INSN_P (insn))
+ reemit_notes (insn);
+
first = first->next_bb;
}
while (first != last);
@@ -4446,7 +4451,7 @@ sel_restore_other_notes (void)
void
sel_finish_bbs (void)
{
- sel_restore_other_notes ();
+ sel_restore_notes ();
/* Remove current loop preheader from this loop. */
if (current_loop_nest)