diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-19 06:49:14 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-19 06:49:14 +0000 |
commit | 63ca89342ed00ad8d92a6dce5908285dc92c7d9f (patch) | |
tree | 7910083b090bdde0f5998511e1a650e8c41540d4 /gcc/tree-data-ref.c | |
parent | c5fe58d7b0816a2ca4a0a08d457c769dbd1df93e (diff) | |
download | gcc-63ca89342ed00ad8d92a6dce5908285dc92c7d9f.tar.gz |
2009-03-19 Li Feng <nemokingdom@gmail.com>
PR middle-end/39500
* tree-data-ref.c (analyze_subscript_affine_affine): There is no
dependence if the first conflict is after niter iterations.
testsuite/
* gcc.dg/autopar/pr39500-1.c: New.
* gcc.dg/autopar/pr39500-2.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144952 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r-- | gcc/tree-data-ref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 7c062602a1a..ea67f1d00b4 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -2302,7 +2302,7 @@ analyze_subscript_affine_affine (tree chrec_a, /* If the overlap occurs outside of the bounds of the loop, there is no dependence. */ - if (x1 > niter || y1 > niter) + if (x1 >= niter || y1 >= niter) { *overlaps_a = conflict_fn_no_dependence (); *overlaps_b = conflict_fn_no_dependence (); |