summaryrefslogtreecommitdiffstats
path: root/gcc/sched-ebb.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/sched-ebb.c')
-rw-r--r--gcc/sched-ebb.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/sched-ebb.c b/gcc/sched-ebb.c
index 4643478b3cb..560faf3620f 100644
--- a/gcc/sched-ebb.c
+++ b/gcc/sched-ebb.c
@@ -525,11 +525,7 @@ schedule_ebb (rtx head, rtx tail)
for (note = REG_NOTES (head); note; note = XEXP (note, 1))
if (REG_NOTE_KIND (note) == REG_SAVE_NOTE)
- {
- remove_note (head, note);
- note = XEXP (note, 1);
- remove_note (head, note);
- }
+ remove_note (head, note);
}
/* Remove remaining note insns from the block, save them in
OpenPOWER on IntegriCloud