aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-predcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-predcom.c')
-rw-r--r--gcc/tree-predcom.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c
index bed30d2..6b195d1 100644
--- a/gcc/tree-predcom.c
+++ b/gcc/tree-predcom.c
@@ -639,9 +639,8 @@ dump_chain (FILE *file, chain_p chain)
/* Dumps CHAINS to FILE. */
-extern void dump_chains (FILE *, vec<chain_p> );
void
-dump_chains (FILE *file, vec<chain_p> chains)
+dump_chains (FILE *file, const vec<chain_p> &chains)
{
chain_p chain;
unsigned i;
@@ -2049,7 +2048,7 @@ finalize_eliminated_stores (class loop *loop, chain_p chain)
static void
initialize_root_vars_lm (class loop *loop, dref root, bool written,
- vec<tree> *vars, vec<tree> inits,
+ vec<tree> *vars, const vec<tree> &inits,
bitmap tmp_vars)
{
unsigned i;
@@ -2324,7 +2323,7 @@ pcom_worker::execute_pred_commoning_chain (chain_p chain,
optimized. */
static unsigned
-determine_unroll_factor (vec<chain_p> chains)
+determine_unroll_factor (const vec<chain_p> &chains)
{
chain_p chain;
unsigned factor = 1, af, nfactor, i;
@@ -2401,7 +2400,7 @@ pcom_worker::execute_pred_commoning (bitmap tmp_vars)
phi node, record the ssa name that is defined by it. */
static void
-replace_phis_by_defined_names (vec<chain_p> chains)
+replace_phis_by_defined_names (vec<chain_p> &chains)
{
chain_p chain;
dref a;
@@ -3276,7 +3275,7 @@ pcom_worker::prepare_finalizers ()
/* Insert all initializing gimple stmts into LOOP's entry edge. */
static void
-insert_init_seqs (class loop *loop, vec<chain_p> chains)
+insert_init_seqs (class loop *loop, vec<chain_p> &chains)
{
unsigned i;
edge entry = loop_preheader_edge (loop);
@@ -3387,7 +3386,7 @@ pcom_worker::tree_predictive_commoning_loop (bool allow_unroll_p)
fprintf (dump_file, "Unrolling %u times.\n", unroll_factor);
dta.tmp_vars = tmp_vars;
- dta.chains = m_chains;
+ dta.chains = m_chains.to_vec_legacy ();
dta.worker = this;
/* Cfg manipulations performed in tree_transform_and_unroll_loop before