tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code): Rename to...
authorRichard Biener <rguenther@suse.de>
Tue, 24 Sep 2019 13:43:07 +0000 (13:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 24 Sep 2019 13:43:07 +0000 (13:43 +0000)
commita7701dd16103048432ec8051e4773760c0e2cf90
tree4a0b480e88c36a52cce24b4cbd4fe9939e5d8aac
parent01b9402c483365acb15aec42d1277467711e9e11
tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code): Rename to...

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

* tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
Rename to...
(_stmt_vec_info::cond_reduc_code): ... this.
(_stmt_vec_info::induc_cond_initial_val): Add.
(STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
(STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
(STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
* tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
* tree-vect-loop.c (get_initial_def_for_reduction): Pass in
the reduction code.
(vect_create_epilog_for_reduction): Drop special
induction condition reduction params, pass in reduction code
and simplify.
(vectorizable_reduction): Perform condition reduction kind
selection only at analysis time.  Adjust passing on state.

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