diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-13 11:52:57 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-13 11:52:57 +0000 |
commit | c026dfb5a1af06027895fb61c407e23a580ad115 (patch) | |
tree | ed58fc119a771fbfa3d1ca483be21e0a9d5b6739 /gcc/tree-data-ref.c | |
parent | f3d3cc6769112a74d652266ef35ae4ad4665d410 (diff) | |
download | gcc-c026dfb5a1af06027895fb61c407e23a580ad115.tar.gz |
PR tree-optimization/24262
* tree-data-ref.c (analyze_offset_expr): Check that init is invariant
in loop all the time.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105368 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 cb3a0ea0681..cf624038e2b 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -1124,7 +1124,7 @@ analyze_offset_expr (tree expr, return false; init = initial_condition_in_loop_num (access_fn, loop->num); - if (init == expr && !expr_invariant_in_loop_p (loop, init)) + if (!expr_invariant_in_loop_p (loop, init)) /* Not enough information: may be not loop invariant. E.g., for a[b[i]], we get a[D], where D=b[i]. EXPR is D, its initial_condition is D, but it depends on i - loop's induction |