https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85586

--- Comment #5 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 
---
Author: rsandifo
Date: Wed May  2 07:43:49 2018
New Revision: 259823

URL: https://gcc.gnu.org/viewcvs?rev=259823&root=gcc&view=rev
Log:
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.sandif...@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.

Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/vect/pr85586.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/tree-vect-data-refs.c

Reply via email to