tree-vect-slp.c (vect_bb_slp_scalar_cost): Fill a cost vector.
authorRichard Biener <rguenther@suse.de>
Wed, 9 May 2018 13:04:00 +0000 (13:04 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 9 May 2018 13:04:00 +0000 (13:04 +0000)
commita296d6d3bdd83a617e789641b828ff53f65a4ec6
tree45900db13bf502d1d1d1bd9a69f9fc3bb3b16148
parentcd9ba4ca3051a5ca411f9d333f2a4cc170136740
tree-vect-slp.c (vect_bb_slp_scalar_cost): Fill a cost vector.

2018-05-09  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_bb_slp_scalar_cost): Fill a cost
vector.
(vect_bb_vectorization_profitable_p): Adjust.  Compute
actual scalar cost using the cost vector and the add_stmt_cost
machinery.

From-SVN: r260078
gcc/ChangeLog
gcc/tree-vect-slp.c