diff options
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r-- | gcc/tree-ssa-loop-niter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 0723752..732e06a 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -3438,7 +3438,7 @@ static void discover_iteration_bound_by_body_walk (struct loop *loop) { struct nb_iter_bound *elt; - vec<widest_int> bounds = vNULL; + auto_vec<widest_int> bounds; vec<vec<basic_block> > queues = vNULL; vec<basic_block> queue = vNULL; ptrdiff_t queue_index; @@ -3593,7 +3593,6 @@ discover_iteration_bound_by_body_walk (struct loop *loop) } queues.release (); - bounds.release (); } /* See if every path cross the loop goes through a statement that is known @@ -3606,7 +3605,7 @@ maybe_lower_iteration_bound (struct loop *loop) hash_set<gimple *> *not_executed_last_iteration = NULL; struct nb_iter_bound *elt; bool found_exit = false; - vec<basic_block> queue = vNULL; + auto_vec<basic_block> queue; bitmap visited; /* Collect all statements with interesting (i.e. lower than @@ -3698,7 +3697,6 @@ maybe_lower_iteration_bound (struct loop *loop) } BITMAP_FREE (visited); - queue.release (); delete not_executed_last_iteration; } |