diff options
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 7b684a62819..5e8fa36f394 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -452,7 +452,6 @@ single_dom_exit (struct loop *loop) /* Dumps information about the induction variable IV to FILE. */ -extern void dump_iv (FILE *, struct iv *); void dump_iv (FILE *file, struct iv *iv) { @@ -497,7 +496,6 @@ dump_iv (FILE *file, struct iv *iv) /* Dumps information about the USE to FILE. */ -extern void dump_use (FILE *, struct iv_use *); void dump_use (FILE *file, struct iv_use *use) { @@ -541,7 +539,6 @@ dump_use (FILE *file, struct iv_use *use) /* Dumps information about the uses to FILE. */ -extern void dump_uses (FILE *, struct ivopts_data *); void dump_uses (FILE *file, struct ivopts_data *data) { @@ -559,7 +556,6 @@ dump_uses (FILE *file, struct ivopts_data *data) /* Dumps information about induction variable candidate CAND to FILE. */ -extern void dump_cand (FILE *, struct iv_cand *); void dump_cand (FILE *file, struct iv_cand *cand) { @@ -1454,29 +1450,6 @@ expr_invariant_in_loop_p (struct loop *loop, tree expr) return true; } -/* Returns true if statement STMT is obviously invariant in LOOP, - i.e. if all its operands on the RHS are defined outside of the LOOP. - LOOP should not be the function body. */ - -bool -stmt_invariant_in_loop_p (struct loop *loop, gimple stmt) -{ - unsigned i; - tree lhs; - - gcc_assert (loop_depth (loop) > 0); - - lhs = gimple_get_lhs (stmt); - for (i = 0; i < gimple_num_ops (stmt); i++) - { - tree op = gimple_op (stmt, i); - if (op != lhs && !expr_invariant_in_loop_p (loop, op)) - return false; - } - - return true; -} - /* Cumulates the steps of indices into DATA and replaces their values with the initial ones. Returns false when the value of the index cannot be determined. Callback for for_each_index. */ |