diff options
Diffstat (limited to 'gcc/loop-unswitch.c')
-rw-r--r-- | gcc/loop-unswitch.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c index db236e8..82cf1ea 100644 --- a/gcc/loop-unswitch.c +++ b/gcc/loop-unswitch.c @@ -138,22 +138,13 @@ compare_and_jump_seq (rtx op0, rtx op1, enum rtx_code comp, rtx label, int prob, void unswitch_loops (void) { - int i, num; + loop_iterator li; struct loop *loop; /* Go through inner loops (only original ones). */ - num = current_loops->num; - for (i = 1; i < num; i++) + FOR_EACH_LOOP (li, loop, LI_ONLY_OLD | LI_ONLY_INNERMOST) { - /* Removed loop? */ - loop = current_loops->parray[i]; - if (!loop) - continue; - - if (loop->inner) - continue; - unswitch_single_loop (loop, NULL_RTX, 0); #ifdef ENABLE_CHECKING verify_dominators (CDI_DOMINATORS); |