+2019-09-18 Richard Biener <rguenther@suse.de>
+
+ * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
+ * tree-vect-loop.c (get_initial_def_for_reduction): Make
+ static.
+ (vect_create_epilog_for_reduction): Remove dead code.
+
2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
* varasm.c (assemble_real): Generate canonical const_ints.
A cost model should help decide between these two schemes. */
-tree
+static tree
get_initial_def_for_reduction (stmt_vec_info stmt_vinfo, tree init_val,
tree *adjustment_def)
{
(in case of SLP, do it for all the phis). */
/* Get the loop-entry arguments. */
- enum vect_def_type initial_def_dt = vect_unknown_def_type;
if (slp_node)
{
unsigned vec_num = SLP_TREE_NUMBER_OF_VEC_STMTS (slp_node);
{
/* Do not use an adjustment def as that case is not supported
correctly if ncopies is not one. */
- vect_is_simple_use (initial_def, loop_vinfo, &initial_def_dt);
vec_initial_def = vect_get_vec_def_for_operand (initial_def,
stmt_info);
}
extern bool vectorizable_induction (stmt_vec_info, gimple_stmt_iterator *,
stmt_vec_info *, slp_tree,
stmt_vector_for_cost *);
-extern tree get_initial_def_for_reduction (stmt_vec_info, tree, tree *);
extern bool vect_worthwhile_without_simd_p (vec_info *, tree_code);
extern int vect_get_known_peeling_cost (loop_vec_info, int, int *,
stmt_vector_for_cost *,