Fix GROUP_GAP for single-element interleaving
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 24 May 2016 10:13:35 +0000 (10:13 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 24 May 2016 10:13:35 +0000 (10:13 +0000)
commit836dbb1a27f3e793ad32723aeb6630237887e6d5
tree424962ab1d41c98e6fba733950a5329a6bc15160
parentf17a223de829cb5fa0b32a9f12c22a4fa929506c
Fix GROUP_GAP for single-element interleaving

vectorizable_load had a curious "force_peeling" variable, with no
comment explaining why we need it for single-element interleaving
but not for other cases.  I think it's simply because we weren't
initialising the GROUP_GAP correctly for single loads.

Tested on aarch64-linux-gnu and x86_64-linux-gnu.

gcc/
* tree-vect-data-refs.c (vect_analyze_group_access_1): Set
GROUP_GAP for single-element interleaving.
* tree-vect-stmts.c (vectorizable_load): Remove force_peeling
variable.

From-SVN: r236631
gcc/ChangeLog
gcc/tree-vect-data-refs.c
gcc/tree-vect-stmts.c