tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec member.
authorRichard Biener <rguenther@suse.de>
Thu, 28 May 2015 07:15:57 +0000 (07:15 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 28 May 2015 07:15:57 +0000 (07:15 +0000)
commit1a4b99c172b8a5485d84e24db16ccbd847a4b1b7
treeb9a3b761a0bd416561dd650f412b812fb82bf201
parent428b381275bc95032274440f02d7719225de2c17
tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec member.

2015-05-28  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
member.
(SLP_INSTANCE_BODY_COST_VEC): Remove.
(vect_update_slp_costs_according_to_vf): Likewise.
(vect_slp_analyze_operations): Update prototype.
* tree-vect-loop.c (vect_analyze_loop_2): Remove call to
vect_update_slp_costs_according_to_vf, adjust.
* tree-vect-slp.c (vect_free_slp_instance): Adjust.
(vect_analyze_slp_cost_1): Likewise.
(vect_analyze_slp_cost): Likewise.  Properly deal with
widening reduction ops.  Commit body costs.
(vect_analyze_slp_instance): Adjust.  Do not analyze SLP
cost for loops from here.
(vect_slp_analyze_operations): But do it from here when
the vectorization factor is known and stmts are analyzed.
(vect_bb_vectorization_profitable_p): Simplify.
(vect_slp_analyze_bb_1): Do not compute SLP cost here.
(vect_update_slp_costs_according_to_vf): Remove.

From-SVN: r223798
gcc/ChangeLog
gcc/tree-vect-loop.c
gcc/tree-vect-slp.c
gcc/tree-vectorizer.h