[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
This commit is contained in:
Sudakshina Das 2019-12-05 18:03:01 +00:00 committed by Sudakshina Das
parent 9bcee9c9a1
commit 8575d59252
2 changed files with 6 additions and 1 deletions

View 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

View 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);