summaryrefslogtreecommitdiffstats
path: root/gcc/doloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/doloop.c')
-rw-r--r--gcc/doloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/doloop.c b/gcc/doloop.c
index caf616cf3af..283080bb429 100644
--- a/gcc/doloop.c
+++ b/gcc/doloop.c
@@ -423,7 +423,7 @@ doloop_modify (loop, iterations, iterations_max,
/* Discard original jump to continue loop. The original compare
result may still be live, so it cannot be discarded explicitly. */
- delete_insn (jump_insn);
+ delete_related_insns (jump_insn);
counter_reg = XEXP (condition, 0);
if (GET_CODE (counter_reg) == PLUS)
OpenPOWER on IntegriCloud