add costing to SLP vectorized PHIs
authorRichard Biener <rguenther@suse.de>
Wed, 4 Nov 2020 10:37:52 +0000 (11:37 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 4 Nov 2020 11:41:25 +0000 (12:41 +0100)
commit1272573a6b2257a7ed525a81e26862a563fb68a0
tree9ec31f960b967ba8d4420a0105648147c421d8de
parent1e9f339d946b8296e3785bec77e03d71b487d689
add costing to SLP vectorized PHIs

I forgot to cost vectorized PHIs.  Scalar PHIs are just costed
as scalar_stmt so the following costs vector PHIs as vector_stmt.

2020-11-04  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (vectorizable_phi): Adjust prototype.
* tree-vect-stmts.c (vect_transform_stmt): Adjust.
(vect_analyze_stmt): Pass cost_vec to vectorizable_phi.
* tree-vect-loop.c (vectorizable_phi): Do costing.
gcc/tree-vect-loop.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.h