From 8575d5925226a8f92ee644d6d59a2b1b93840d94 Mon Sep 17 00:00:00 2001 From: Sudakshina Das Date: Thu, 5 Dec 2019 18:03:01 +0000 Subject: [PATCH] [Patch, GCC] Fix a condition post r278611 gcc/ChangeLog 2019-12-05 Sudakshina Das * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type check from if condition. From-SVN: r279012 --- gcc/ChangeLog | 5 +++++ gcc/tree-vect-loop.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87dc67ee53b..08aee8972c7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-12-05 Sudakshina Das + + * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type + check from if condition. + 2019-12-05 Tobias Burnus * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 83b0e0b8ce9..ddc1d83a4d3 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); -- 2.30.2