summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2016-07-13 02:44:52 +0000
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2016-07-13 02:44:52 +0000
commite9258aee374f252f55be61f28bfac65006f73d41 (patch)
treeb23b2bc969495367f8ea5f18416b898c1494be56 /gcc/tree-ssa-sccvn.c
parent8749fe3bf751d6cd152dd343f24a849cdcb0af57 (diff)
downloadgcc-e9258aee374f252f55be61f28bfac65006f73d41.tar.gz
use auto_vec for more local variables
gcc/c/ChangeLog: 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * c-parser.c (c_parser_generic_selection): Make type of variable auto_vec. (c_parser_omp_declare_simd): Likewise. gcc/ChangeLog: 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * cfgexpand.c (expand_used_vars): Make the type of a local variable auto_vec. * genmatch.c (lower_for): Likewise. * haifa-sched.c (haifa_sched_init): Likewise. (add_to_speculative_block): Likewise. (create_check_block_twin): Likewise. * predict.c (handle_missing_profiles): Likewise. * tree-data-ref.c (loop_nest_has_data_refs): Likewise. * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise. * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise. (maybe_lower_iteration_bound): Likewise. * tree-ssa-sccvn.c (DFS): Likewise. * tree-stdarg.c (reachable_at_most_once): Likewise. * tree-vect-stmts.c (vectorizable_conversion): Likewise. (vectorizable_store): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238285 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r--gcc/tree-ssa-sccvn.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index 9bcbe52a298..9427bfc6062 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -4120,8 +4120,8 @@ extract_and_process_scc_for_name (tree name)
static bool
DFS (tree name)
{
- vec<ssa_op_iter> itervec = vNULL;
- vec<tree> namevec = vNULL;
+ auto_vec<ssa_op_iter> itervec;
+ auto_vec<tree> namevec;
use_operand_p usep = NULL;
gimple *defstmt;
tree use;
@@ -4158,19 +4158,11 @@ start_over:
/* See if we found an SCC. */
if (VN_INFO (name)->low == VN_INFO (name)->dfsnum)
if (!extract_and_process_scc_for_name (name))
- {
- namevec.release ();
- itervec.release ();
- return false;
- }
+ return false;
/* Check if we are done. */
if (namevec.is_empty ())
- {
- namevec.release ();
- itervec.release ();
- return true;
- }
+ return true;
/* Restore the last use walker and continue walking there. */
use = name;