aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.c
diff options
context:
space:
mode:
authorSudakshina Das <sudi.das@arm.com>2019-12-05 18:03:01 +0000
committerSudakshina Das <sudi@gcc.gnu.org>2019-12-05 18:03:01 +0000
commit8575d5925226a8f92ee644d6d59a2b1b93840d94 (patch)
treed157c9a1dc400e15108cef3a97e3a0649519c3ed /gcc/tree-vect-loop.c
parent9bcee9c9a153270c9bf73b73a6af564e715032ff (diff)
downloadgcc-8575d5925226a8f92ee644d6d59a2b1b93840d94.zip
gcc-8575d5925226a8f92ee644d6d59a2b1b93840d94.tar.gz
gcc-8575d5925226a8f92ee644d6d59a2b1b93840d94.tar.bz2
[Patch, GCC] Fix a condition post r278611
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
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r--gcc/tree-vect-loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 83b0e0b..ddc1d83 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -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);