aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2005-09-15 17:21:48 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2005-09-15 17:21:48 +0000
commit14b33c04a1920fb97bde191021a509b439f3cf29 (patch)
treebe7a77e576a00aa72443ccbc713c82a161c9c2f9 /gcc/tree-ssa-loop-niter.c
parent312ea2368e81a4e198a3e414464413d1c5334038 (diff)
downloadgcc-14b33c04a1920fb97bde191021a509b439f3cf29.zip
gcc-14b33c04a1920fb97bde191021a509b439f3cf29.tar.gz
gcc-14b33c04a1920fb97bde191021a509b439f3cf29.tar.bz2
tree-data-ref.c (analyze_array_indexes): Add estimate_only parameter.
2005-09-15 Daniel Berlin <dberlin@dberlin.org> * tree-data-ref.c (analyze_array_indexes): Add estimate_only parameter. Update callers. (estimate_iters_using_array): New function. * tree-data-ref.h (estimate_iters_using_array): Prototype * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use estimate_iters_using_array instead of analyze_array. From-SVN: r104312
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r--gcc/tree-ssa-loop-niter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c
index b866418..544ead2 100644
--- a/gcc/tree-ssa-loop-niter.c
+++ b/gcc/tree-ssa-loop-niter.c
@@ -1434,10 +1434,10 @@ infer_loop_bounds_from_undefined (struct loop *loop)
/* For each array access, analyze its access function
and record a bound on the loop iteration domain. */
if (TREE_CODE (op1) == ARRAY_REF)
- analyze_array (stmt, op1, true);
+ estimate_iters_using_array (stmt, op1);
if (TREE_CODE (op0) == ARRAY_REF)
- analyze_array (stmt, op0, false);
+ estimate_iters_using_array (stmt, op0);
/* For each signed type variable in LOOP, analyze its
scalar evolution and record a bound of the loop
@@ -1488,7 +1488,7 @@ infer_loop_bounds_from_undefined (struct loop *loop)
for (args = TREE_OPERAND (stmt, 1); args;
args = TREE_CHAIN (args))
if (TREE_CODE (TREE_VALUE (args)) == ARRAY_REF)
- analyze_array (stmt, TREE_VALUE (args), true);
+ estimate_iters_using_array (stmt, TREE_VALUE (args));
break;
}