[Patch, GCC] Fix a condition post r278611
authorSudakshina Das <sudi.das@arm.com>
Thu, 5 Dec 2019 18:03:01 +0000 (18:03 +0000)
committerSudakshina Das <sudi@gcc.gnu.org>
Thu, 5 Dec 2019 18:03:01 +0000 (18:03 +0000)
gcc/ChangeLog

2019-12-05  Sudakshina Das  <sudi.das@arm.com>

* tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
check from if condition.

From-SVN: r279012

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

index 87dc67ee53b83ea2c4b47a5763f3367cb882dc7a..08aee8972c7565dc368879b85df80953f4b1fa3b 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-05  Sudakshina Das  <sudi.das@arm.com>
+
+       * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
+       check from if condition.
+
 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
 
        * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
index 83b0e0b8ce9c6c0979e64448ed9118587f0ae7a9..ddc1d83a4d305270791ef26d1fbf5a041450f2ae 100644 (file)
@@ -3915,7 +3915,7 @@ vect_model_reduction_cost (stmt_vec_info stmt_info, internal_fn reduc_fn,
       /* No extra instructions needed in the prologue.  */
       prologue_cost = 0;
 
-      if (reduction_type == EXTRACT_LAST_REDUCTION || reduc_fn != IFN_LAST)
+      if (reduc_fn != IFN_LAST)
        /* Count one reduction-like operation per vector.  */
        inside_cost = record_stmt_cost (cost_vec, ncopies, vec_to_scalar,
                                        stmt_info, 0, vect_body);