tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type and reduc_def fields.
authorRichard Biener <rguenther@suse.de>
Tue, 30 May 2017 13:21:44 +0000 (13:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 30 May 2017 13:21:44 +0000 (13:21 +0000)
commit1a58f770e487e94227fc75a42eee385d86b7bee9
tree4e4f65b56f2fb31fbf9f45cfc35923077d3fce2c
parent5b2edf5314c7c8d69f2e38c1ce5aaf381a230b96
tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type and reduc_def fields.

2017-05-30  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
and reduc_def fields.
(STMT_VINFO_REDUC_TYPE): New define.
(STMT_VINFO_REDUC_DEF): Likewise.
(vect_force_simple_reduction): Adjust prototype.
* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
(vect_is_simple_reduction): Remove check_reduction argument.
(vect_force_simple_reduction): Adjust and set
STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
(vectorizable_reduction): Do not re-do reduction analysis
but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
* tree-parloops.c (gather_scalar_reductions): Adjust.

From-SVN: r248685
gcc/ChangeLog
gcc/tree-parloops.c
gcc/tree-vect-loop.c
gcc/tree-vectorizer.h