diff options
| author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-22 00:42:28 +0000 |
|---|---|---|
| committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-22 00:42:28 +0000 |
| commit | d0186307062d00b77b83f0fb907604943f3493cc (patch) | |
| tree | 4b807050400db7408a16243b129aa442be14c1d6 /gcc/tree-data-ref.c | |
| parent | c0790887e53a275fa58f4fbf438d81dc73a6130c (diff) | |
| download | ppe42-gcc-d0186307062d00b77b83f0fb907604943f3493cc.tar.gz ppe42-gcc-d0186307062d00b77b83f0fb907604943f3493cc.zip | |
2005-09-20 Daniel Berlin <dberlin@dberlin.org>
* tree-data-ref.c (analyze_array_indexes): Only estimate when
estimate_only is true.
* tree-flow.h (ref_contains_indirect_ref): New prototype.
* tree-flow-inline.h (ref_contains_indirect_ref): Moved from
tree-ssa-structalias.c
* tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
ref_contains_indirect_ref.
* tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104518 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-data-ref.c')
| -rw-r--r-- | gcc/tree-data-ref.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index e87d66458de..cb3a0ea0681 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -823,7 +823,8 @@ analyze_array_indexes (struct loop *loop, access_fn = instantiate_parameters (loop, analyze_scalar_evolution (loop, opnd1)); - if (chrec_contains_undetermined (loop->estimated_nb_iterations)) + if (estimate_only + && chrec_contains_undetermined (loop->estimated_nb_iterations)) estimate_niter_from_size_of_data (loop, opnd0, access_fn, stmt); if (!estimate_only) |

