Use loop->safelen rather than loop->force_vectorize
authorRichard Sandiford <richard.sandiford@linaro.org>
Fri, 2 Mar 2018 09:45:51 +0000 (09:45 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 2 Mar 2018 09:45:51 +0000 (09:45 +0000)
commit962e91fcf043edab3684dd0564efd3df219d3cb1
tree97607f1a40e2c04231fbc034f22260989fd38c8f
parentec2d71214f90e21675a5abbe5b532273f7b11ded
Use loop->safelen rather than loop->force_vectorize

...since the latter doesn't guarantee independence by itself.

2018-03-02  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* tree-vect-data-refs.c (vect_analyze_data_ref_dependence)
(vect_analyze_data_ref_access): Use loop->safe_len rather than
loop->force_vectorize to check whether there is no alias.

gcc/testsuite/
* gcc.dg/vect/vect-alias-check-13.c: New test.

From-SVN: r258130
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-alias-check-13.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c