Fix DR_GROUP_GAP for strided accesses (PR 92677)
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 29 Nov 2019 14:48:30 +0000 (14:48 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 29 Nov 2019 14:48:30 +0000 (14:48 +0000)
commit7e99af4816cfad578094fcf08e2377f3ed76e201
tree4e208d19de064a1a6dab5a34778f71384ef8d667
parent02d895504cc59be06fc3f7ec0cfd4eb160561211
Fix DR_GROUP_GAP for strided accesses (PR 92677)

When dissolving an SLP-only group of accesses, we should only set
the gap to group_size - 1 for normal non-strided groups.

2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
PR tree-optimization/92677
* tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
to zero when dissolving a group of strided accesses.

gcc/testsuite/
PR tree-optimization/92677
* gcc.dg/vect/pr92677.c: New test.

From-SVN: r278852
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr92677.c [new file with mode: 0644]
gcc/tree-vect-loop.c