tree-vectorizer.h (get_initial_def_for_reduction): Remove.
authorRichard Biener <rguenther@suse.de>
Wed, 18 Sep 2019 12:43:08 +0000 (12:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 18 Sep 2019 12:43:08 +0000 (12:43 +0000)
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.

From-SVN: r275874

gcc/ChangeLog
gcc/tree-vect-loop.c
gcc/tree-vectorizer.h

index a6869cfcbdbb7bf75858c73c2ce398890ae5dcab..c4b27bf09596c7633d604902d90c81e8a671454e 100644 (file)
@@ -1,3 +1,10 @@
+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.
index d8546ff8935ae29dd2366ef7450bc1b1a3fdc95a..a455a6d40c7bc63320beee781ff8aec20bc078fc 100644 (file)
@@ -4203,7 +4203,7 @@ vect_model_induction_cost (stmt_vec_info stmt_info, int ncopies,
 
    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)
 {
@@ -4585,7 +4585,6 @@ vect_create_epilog_for_reduction (vec<tree> vect_defs,
      (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);
@@ -4623,7 +4622,6 @@ vect_create_epilog_for_reduction (vec<tree> vect_defs,
        {
          /* 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);
        }
index 05ad1c6862b151333375aae0f000d6f869f05833..40ff8b7193e872b4b9f90c6143e8d4e896fda360 100644 (file)
@@ -1645,7 +1645,6 @@ extern bool vectorizable_reduction (stmt_vec_info, gimple_stmt_iterator *,
 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 *,