tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo access on whether the use...
authorRichard Biener <rguenther@suse.de>
Wed, 29 May 2013 08:44:23 +0000 (08:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 29 May 2013 08:44:23 +0000 (08:44 +0000)
commit292cba13912dae6eba49d4063e14d089e8705465
tree6f27c740d3aeef4b16f93bcf7697c9dc722abeba
parent6eddf228932b9a7146aac7c930c0ed1eefe2be9f
tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo access on whether the use is in the BB we currently try to vectorize.

2013-05-29  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
access on whether the use is in the BB we currently try to
vectorize.
(vect_bb_vectorization_profitable_p): Pass the BB we currently
vectorize to vect_bb_slp_scalar_cost.

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