re PR tree-optimization/64909 (Missed vectorization with bdver1)
authorRichard Biener <rguenther@suse.de>
Sat, 4 Apr 2015 10:47:08 +0000 (10:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 4 Apr 2015 10:47:08 +0000 (10:47 +0000)
commit30c5a937e19ac28dbb6d023516af9c1b902614aa
treeae57389dd5207eae838acff0fa8788c691c5dda5
parent0da0c47dc5f7a2a8f8f8fad8c7e4d3d1bfeb37ea
re PR tree-optimization/64909 (Missed vectorization with bdver1)

2015-04-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/64909
PR tree-optimization/65660
* tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
to take a cost vector for scalar iteration cost.
(vect_get_single_scalar_iteration_cost): Likewise.
* tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
Compute the scalar iteration cost into a cost vector.
(vect_get_known_peeling_cost): Use the scalar cost vector to
account for the cost of the peeled iterations.
(vect_estimate_min_profitable_iters): Likewise.
* tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
Likewise.

From-SVN: r221866
gcc/ChangeLog
gcc/tree-vect-data-refs.c
gcc/tree-vect-loop.c
gcc/tree-vectorizer.h