diff options
Diffstat (limited to 'gcc/loop-doloop.c')
-rw-r--r-- | gcc/loop-doloop.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c index 965e2e3edd8..737761b962c 100644 --- a/gcc/loop-doloop.c +++ b/gcc/loop-doloop.c @@ -359,11 +359,11 @@ doloop_modify (struct loop *loop, struct niter_desc *desc, /* Expand the condition testing the assumptions and if it does not pass, reset the count register to 0. */ add_test (XEXP (ass, 0), preheader, set_zero); - EDGE_SUCC (preheader, 0)->flags &= ~EDGE_FALLTHRU; - cnt = EDGE_SUCC (preheader, 0)->count; - EDGE_SUCC (preheader, 0)->probability = 0; - EDGE_SUCC (preheader, 0)->count = 0; - irr = EDGE_SUCC (preheader, 0)->flags & EDGE_IRREDUCIBLE_LOOP; + single_succ_edge (preheader)->flags &= ~EDGE_FALLTHRU; + cnt = single_succ_edge (preheader)->count; + single_succ_edge (preheader)->probability = 0; + single_succ_edge (preheader)->count = 0; + irr = single_succ_edge (preheader)->flags & EDGE_IRREDUCIBLE_LOOP; te = make_edge (preheader, new_preheader, EDGE_FALLTHRU | irr); te->probability = REG_BR_PROB_BASE; te->count = cnt; @@ -375,7 +375,7 @@ doloop_modify (struct loop *loop, struct niter_desc *desc, for (ass = XEXP (ass, 1); ass; ass = XEXP (ass, 1)) { bb = loop_split_edge_with (te, NULL_RTX); - te = EDGE_SUCC (bb, 0); + te = single_succ_edge (bb); add_test (XEXP (ass, 0), bb, set_zero); make_edge (bb, set_zero, irr); } |