diff options
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 8b9d62b..aceca1d 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1391,7 +1391,7 @@ predict_loops (void) { basic_block bb, *bbs; unsigned j, n_exits; - VEC (edge, heap) *exits; + vec<edge> exits; struct tree_niter_desc niter_desc; edge ex; struct nb_iter_bound *nb_iter; @@ -1402,14 +1402,14 @@ predict_loops (void) gimple stmt = NULL; exits = get_loop_exit_edges (loop); - n_exits = VEC_length (edge, exits); + n_exits = exits.length (); if (!n_exits) { - VEC_free (edge, heap, exits); + exits.release (); continue; } - FOR_EACH_VEC_ELT (edge, exits, j, ex) + FOR_EACH_VEC_ELT (exits, j, ex) { tree niter = NULL; HOST_WIDE_INT nitercst; @@ -1452,7 +1452,7 @@ predict_loops (void) probability = ((REG_BR_PROB_BASE + nitercst / 2) / nitercst); predict_edge (ex, predictor, probability); } - VEC_free (edge, heap, exits); + exits.release (); /* Find information about loop bound variables. */ for (nb_iter = loop->bounds; nb_iter; |