Fix gather/scatter check when updating a vector epilogue loop
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 10 Jan 2020 14:56:20 +0000 (14:56 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 10 Jan 2020 14:56:20 +0000 (14:56 +0000)
commitac190fcea1bebf87a2c8c3963548a0e5272c42ec
tree0652422c6b4fa21ff8ff9b88f65df7593d91e028
parent2fb672a2574004a1e77c8ba83af539673f5cf659
Fix gather/scatter check when updating a vector epilogue loop

update_epilogue_loop_vinfo applies SSA renmaing to the DR_REF of a
gather or scatter, so that vect_check_gather_scatter continues to work.
However, we sometimes also rely on vect_check_gather_scatter when
using gathers and scatters to implement strided accesses.

This showed up on existing tests when testing with fixed-length
-msve-vector-bits=128.

2020-01-10  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vect-loop.c (update_epilogue_loop_vinfo): Update DR_REF
for any type of gather or scatter, including strided accesses.

From-SVN: r280111
gcc/ChangeLog
gcc/tree-vect-loop.c