tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec and single_scalar_iteration_c...
authorRichard Biener <rguenther@suse.de>
Mon, 22 Jun 2015 10:44:02 +0000 (10:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 22 Jun 2015 10:44:02 +0000 (10:44 +0000)
commit6d098c572aef870f6a068d7e6697fde5a4ed2ccc
tree0e00bc071e7f538a73a3b51455376d755bd38499
parent606e3099e8fb81ab22e046421a6fe5a7338b2cd7
tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec and single_scalar_iteration_cost members.

2015-06-22  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
and single_scalar_iteration_cost members.
(LOOP_VINFO_SCALAR_ITERATION_COST): New.
(LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
(vect_get_single_scalar_iteration_cost): Remove.
* tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
Use LOOP_VINFO_SCALAR_ITERATION_COST.
* tree-vect-loop.c (destroy_loop_vec_info): Free
scalar_cost_vec.
(vect_get_single_scalar_iteration_cost): Compute result into
LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
(vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
(vect_estimate_min_profitable_iters): Use them.

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