From 14f25899b4ec14f79a497a1421e1e3fc8c76e243 Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Thu, 3 Jul 2008 22:02:18 +0000 Subject: * tree-flow.h (loop_only_exit_p): Declare. * tree-ssa-loop-niter.c (loop_only_exit_p): Make public. * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on the number of iterations if it is constant. Otherwise, if this is the only possible exit of the loop, use the conservative estimate on the number of iterations of the entire loop if available. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137437 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa-loop-niter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-ssa-loop-niter.c') diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 74153fd294d..80b45c298b7 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -1672,7 +1672,7 @@ simplify_using_outer_evolutions (struct loop *loop, tree expr) /* Returns true if EXIT is the only possible exit from LOOP. */ -static bool +bool loop_only_exit_p (const struct loop *loop, const_edge exit) { basic_block *body; -- cgit v1.2.3