re PR middle-end/37150 (basic-block vectorization misses some unrolled loops)
authorRichard Biener <rguenther@suse.de>
Mon, 7 Nov 2016 08:06:08 +0000 (08:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 7 Nov 2016 08:06:08 +0000 (08:06 +0000)
commit29afecdf1b14136640f1d88da0e10751dbc6283c
treee8cf074ca42c483bdddbc561af7283cbc762e5fd
parenta0d3edf8a54e30d48f61eb59a0be33c7ed2b971f
re PR middle-end/37150 (basic-block vectorization misses some unrolled loops)

2016-11-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/37150
* tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
parameter.
* tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
(vect_analyze_slp_cost_1): Account for the real number of
permutations emitted and for dead loads.
(vect_transform_slp_perm_load): Add n_perms parameter counting
the number of emitted permutations.
* tree-vect-stmts.c (vectorizable_load): Adjust.

From-SVN: r241893
gcc/ChangeLog
gcc/tree-vect-slp.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.h