diff options
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r-- | gcc/cfgloop.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index 516a72eb941..c242756e848 100644 --- a/gcc/cfgloop.c +++ b/gcc/cfgloop.c @@ -130,7 +130,7 @@ flow_loop_dump (const struct loop *loop, FILE *file, { fprintf (file, "multiple latches:"); latches = get_loop_latch_edges (loop); - for (i = 0; VEC_iterate (edge, latches, i, e); i++) + FOR_EACH_VEC_ELT (edge, latches, i, e) fprintf (file, " %d", e->src->index); VEC_free (edge, heap, latches); fprintf (file, "\n"); @@ -209,7 +209,7 @@ flow_loops_free (struct loops *loops) loop_p loop; /* Free the loop descriptors. */ - for (i = 0; VEC_iterate (loop_p, loops->larray, i, loop); i++) + FOR_EACH_VEC_ELT (loop_p, loops->larray, i, loop) { if (!loop) continue; @@ -286,7 +286,7 @@ establish_preds (struct loop *loop, struct loop *father) VEC_truncate (loop_p, loop->superloops, 0); VEC_reserve (loop_p, gc, loop->superloops, depth); - for (i = 0; VEC_iterate (loop_p, father->superloops, i, ploop); i++) + FOR_EACH_VEC_ELT (loop_p, father->superloops, i, ploop) VEC_quick_push (loop_p, loop->superloops, ploop); VEC_quick_push (loop_p, loop->superloops, father); @@ -530,7 +530,7 @@ find_subloop_latch_edge_by_profile (VEC (edge, heap) *latches) edge e, me = NULL; gcov_type mcount = 0, tcount = 0; - for (i = 0; VEC_iterate (edge, latches, i, e); i++) + FOR_EACH_VEC_ELT (edge, latches, i, e) { if (e->count > mcount) { @@ -579,7 +579,7 @@ find_subloop_latch_edge_by_ivs (struct loop *loop ATTRIBUTE_UNUSED, VEC (edge, h latch = e; /* Verify that it dominates all the latch edges. */ - for (i = 0; VEC_iterate (edge, latches, i, e); i++) + FOR_EACH_VEC_ELT (edge, latches, i, e) if (!dominated_by_p (CDI_DOMINATORS, e->src, latch->src)) return NULL; @@ -598,7 +598,7 @@ find_subloop_latch_edge_by_ivs (struct loop *loop ATTRIBUTE_UNUSED, VEC (edge, h if (!bb || !flow_bb_inside_loop_p (loop, bb)) continue; - for (i = 0; VEC_iterate (edge, latches, i, e); i++) + FOR_EACH_VEC_ELT (edge, latches, i, e) if (e != latch && PHI_ARG_DEF_FROM_EDGE (phi, e) == lop) return NULL; @@ -696,7 +696,7 @@ merge_latch_edges (struct loop *loop) fprintf (dump_file, "Merged latch edges of loop %d\n", loop->num); mfb_reis_set = pointer_set_create (); - for (i = 0; VEC_iterate (edge, latches, i, e); i++) + FOR_EACH_VEC_ELT (edge, latches, i, e) pointer_set_insert (mfb_reis_set, e); latch = make_forwarder_block (loop->header, mfb_redirect_edges_in_set, NULL); @@ -1192,7 +1192,7 @@ add_bb_to_loop (basic_block bb, struct loop *loop) bb->loop_father = loop; bb->loop_depth = loop_depth (loop); loop->num_nodes++; - for (i = 0; VEC_iterate (loop_p, loop->superloops, i, ploop); i++) + FOR_EACH_VEC_ELT (loop_p, loop->superloops, i, ploop) ploop->num_nodes++; FOR_EACH_EDGE (e, ei, bb->succs) @@ -1217,7 +1217,7 @@ remove_bb_from_loops (basic_block bb) gcc_assert (loop != NULL); loop->num_nodes--; - for (i = 0; VEC_iterate (loop_p, loop->superloops, i, ploop); i++) + FOR_EACH_VEC_ELT (loop_p, loop->superloops, i, ploop) ploop->num_nodes--; bb->loop_father = NULL; bb->loop_depth = 0; |