tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
authorRichard Biener <rguenther@suse.de>
Fri, 27 Sep 2019 13:19:58 +0000 (13:19 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 27 Sep 2019 13:19:58 +0000 (13:19 +0000)
commit29f26978866f32bddd656847441a3a953ffd7a21
treeab0278dd3939f70a41b9ab2739ff86508ebefc0d
parent67cb34efd8696f2710d8f818d4e25da818a9bff9
tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.

2019-09-27  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
(STMT_VINFO_REDUC_FN): Likewise.
* tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
STMT_VINFO_REDUC_FN.
* tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
for condition reductions.
(vect_create_epilog_for_reduction): Compute all required state
from the stmt to be vectorized.
(vectorizable_reduction): Simplify vect_create_epilog_for_reduction
invocation and remove then dead code.  For single def-use chains
record only a single vector stmt.

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