tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
authorRichard Biener <rguenther@suse.de>
Tue, 26 May 2015 09:03:53 +0000 (09:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 26 May 2015 09:03:53 +0000 (09:03 +0000)
commita12e42fc3dc64fb4183ee30e32906d3111552a17
tree15fa47bc711a4455035b475a8d1776cff5f4faeb
parent213999c2337e6a75b1c95da8e86506c5e35b80a6
tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...

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

* tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
(vect_analyze_loop_operations): ... here.  Remove slp parameter,
detect whether we apply SLP.  Remove call to
vect_update_slp_costs_according_to_vf.
(vect_analyze_loop_2): Call vect_update_vf_for_slp and
vect_update_slp_costs_according_to_vf from here.  Dispatch
to vect_slp_analyze_operations to analyze SLP stmts.
* tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
unused bb_vec_info parameter, adjust assert.
(vect_slp_analyze_operations): Pass in the slp instance tree
instead of bb_vec_info.
(vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
* tree-vectorizer.h (vect_slp_analyze_operations): Declare.

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