tree-vect-loop.c (vect_analyze_loop_operations): Analyze loop-closed PHIs that are...
authorRichard Biener <rguenther@suse.de>
Thu, 26 Sep 2019 16:52:50 +0000 (16:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 26 Sep 2019 16:52:50 +0000 (16:52 +0000)
commit1b4dbccc1f828fa00e6acc8b88d24301c65552df
tree7ca3a6bc14aab35bbbe7b501af5cd37bee20bcdd
parent26cdf7bd5e9cb47f2a8761d8d5d2babf0bf5bb15
tree-vect-loop.c (vect_analyze_loop_operations): Analyze loop-closed PHIs that are vect_internal_def.

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

* tree-vect-loop.c (vect_analyze_loop_operations): Analyze
loop-closed PHIs that are vect_internal_def.
(vect_create_epilog_for_reduction): Exit early for nested cycles.
Simplify.
(vectorizable_lc_phi): New.
* tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
(vect_transform_stmt): Likewise.
* tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
(vectorizable_lc_phi): Declare.

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