summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-02 13:16:37 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-02 13:16:37 +0000
commit0523b3f8725b6d5e25481cf65e31e2206a616177 (patch)
treef91f828adba761b83b73b922dfe8d96b87d32024 /gcc/tree-ssa-loop-niter.c
parent12e8f34d28e0c5c91f1fdae5f0c2ccd23ceded50 (diff)
downloadgcc-0523b3f8725b6d5e25481cf65e31e2206a616177.tar.gz
Fix mistake in my previous commit (n_of_executions_at_least should be
named n_of_executions_at_most). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113461 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r--gcc/tree-ssa-loop-niter.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c
index 6404c7552e3..bc359ad309f 100644
--- a/gcc/tree-ssa-loop-niter.c
+++ b/gcc/tree-ssa-loop-niter.c
@@ -1757,9 +1757,9 @@ stmt_dominates_stmt_p (tree s1, tree s2)
NITER_BOUND->bound times. */
static bool
-n_of_executions_at_least (tree stmt,
- struct nb_iter_bound *niter_bound,
- tree niter)
+n_of_executions_at_most (tree stmt,
+ struct nb_iter_bound *niter_bound,
+ tree niter)
{
tree cond;
tree bound = niter_bound->bound;
@@ -1863,7 +1863,7 @@ convert_step_widening (struct loop *loop, tree new_type, tree base, tree step,
estimate_numbers_of_iterations_loop (loop);
for (bound = loop->bounds; bound; bound = bound->next)
- if (n_of_executions_at_least (at_stmt, bound, valid_niter))
+ if (n_of_executions_at_most (at_stmt, bound, valid_niter))
return step_in_new_type;
/* Fail when the loop has no bound estimations, or when no bound can
@@ -2067,7 +2067,7 @@ scev_probably_wraps_p (tree type, tree base, tree step,
estimate_numbers_of_iterations_loop (loop);
for (bound = loop->bounds; bound; bound = bound->next)
- if (n_of_executions_at_least (at_stmt, bound, valid_niter))
+ if (n_of_executions_at_most (at_stmt, bound, valid_niter))
return false;
/* At this point we still don't have a proof that the iv does not