summaryrefslogtreecommitdiff
path: root/gcc/tree-predcom.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-22 14:55:48 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-22 14:55:48 +0000
commite80e26dbccf3025687e6ff283d3b0ea3df323e31 (patch)
treefa066c45b21e099c0fd6d70615ac22a7b64cf45a /gcc/tree-predcom.c
parentc29bc60ba5560af4a645eeab1f350b470ee09513 (diff)
parent8b450f8859f22b0d3afa8edb42f3f287400d6975 (diff)
downloadgcc-e80e26dbccf3025687e6ff283d3b0ea3df323e31.tar.gz
Merge with trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@205263 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-predcom.c')
-rw-r--r--gcc/tree-predcom.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c
index 55dd7c32475..f257d526960 100644
--- a/gcc/tree-predcom.c
+++ b/gcc/tree-predcom.c
@@ -1538,7 +1538,7 @@ initialize_root_vars_lm (struct loop *loop, dref root, bool written,
static void
execute_load_motion (struct loop *loop, chain_p chain, bitmap tmp_vars)
{
- vec<tree> vars;
+ auto_vec<tree> vars;
dref a;
unsigned n_writes = 0, ridx, i;
tree var;
@@ -1577,8 +1577,6 @@ execute_load_motion (struct loop *loop, chain_p chain, bitmap tmp_vars)
replace_ref_with (a->stmt, vars[ridx],
!is_read, !is_read);
}
-
- vars.release ();
}
/* Returns the single statement in that NAME is used, excepting
@@ -2272,7 +2270,7 @@ try_combine_chains (vec<chain_p> *chains)
{
unsigned i, j;
chain_p ch1, ch2, cch;
- vec<chain_p> worklist = vNULL;
+ auto_vec<chain_p> worklist;
FOR_EACH_VEC_ELT (*chains, i, ch1)
if (chain_can_be_combined_p (ch1))
@@ -2298,8 +2296,6 @@ try_combine_chains (vec<chain_p> *chains)
}
}
}
-
- worklist.release ();
}
/* Prepare initializers for CHAIN in LOOP. Returns false if this is