Tighten early exit in vect_analyze_data_ref_dependence (PR85586)
commit472a8968ac81dffb06320466c786a6da0337c707
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 May 2018 07:40:22 +0000 (2 07:40 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 May 2018 07:40:22 +0000 (2 07:40 +0000)
treecc2d2a65d221c55d054add0a6d8e0909b1c800d6
parentf6b7f3cf30cdb0f4615666981b07876d7366da56
Tighten early exit in vect_analyze_data_ref_dependence (PR85586)

The problem in this PR was that we didn't consider aliases between
writes in the same strided group.  After tightening the early exit
we get the expected abs(step) >= 2 versioning check.

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

gcc/
PR tree-optimization/85586
* tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Only
exit early for statements in the same group if the accesses are
not strided.

gcc/testsuite/
PR tree-optimization/85586
* gcc.dg/vect/pr85586.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259822 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr85586.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c