aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorLi Feng <nemokingdom@gmail.com>2009-03-19 06:49:14 +0000
committerSebastian Pop <spop@gcc.gnu.org>2009-03-19 06:49:14 +0000
commit9e517d61f7635494e97f23970570de7c78a824ef (patch)
tree7910083b090bdde0f5998511e1a650e8c41540d4 /gcc/tree-data-ref.c
parent8ef20026dc352e6a1fccae8052bf7bdc009742bc (diff)
downloadgcc-9e517d61f7635494e97f23970570de7c78a824ef.zip
gcc-9e517d61f7635494e97f23970570de7c78a824ef.tar.gz
gcc-9e517d61f7635494e97f23970570de7c78a824ef.tar.bz2
re PR middle-end/39500 (autopar fails to parallel)
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. From-SVN: r144952
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r--gcc/tree-data-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c
index 7c06260..ea67f1d 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 ();