re PR tree-optimization/81740 (wrong code at -O3 in both 32-bit and 64-bit modes...
authorBin Cheng <bin.cheng@linux.alibaba.com>
Tue, 26 Mar 2019 11:12:37 +0000 (11:12 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 26 Mar 2019 11:12:37 +0000 (11:12 +0000)
commitf30d4934a90a6121674d882d391dc09d8fce190c
treedceaf13c79931e68028dfe72926292485c514420
parenta235c72e64a2ec26d63d614e3d1ce12a7e061201
re PR tree-optimization/81740 (wrong code at -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu)

2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>

PR tree-optimization/81740
* tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
In case of outer loop vectorization, check for backward dependence
at the inner loop if outer loop dependence is reversed.

* gcc.dg/vect/pr81740-1.c: New testcase.
* gcc.dg/vect/pr81740-2.c: Likewise.

From-SVN: r269938
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr81740-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr81740-2.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c