Don't group gather loads (PR83847)
authorRichard Sandiford <richard.sandiford@linaro.org>
Tue, 16 Jan 2018 09:28:26 +0000 (09:28 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 16 Jan 2018 09:28:26 +0000 (09:28 +0000)
commit82279a515eae2b655eaba39e42e7dded25da5e2c
tree1cefcc28303d503484179c158c5c32f77a936a1b
parent9064759767c96c221038fc5998596d425a18622d
Don't group gather loads (PR83847)

In the testcase we were trying to group two gather loads, even though
that isn't supported.  Fixed by explicitly disallowing grouping of
gathers and scatters.

This problem didn't show up on SVE because there we convert to
IFN_GATHER_LOAD/IFN_SCATTER_STORE pattern statements, which fail
the can_group_stmts_p check.

2018-01-16  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* tree-vect-data-refs.c (vect_analyze_data_ref_accesses):

gcc/testsuite/
* gcc.dg/torture/pr83847.c: New test.

From-SVN: r256730
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr83847.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c