aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2008-07-03 22:02:18 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2008-07-03 22:02:18 +0000
commit52778e2a62d8e9eacf3333e2cb34b65a45aaf12d (patch)
tree9886efa3473e49dd9518ad36302fcd41d4de7204 /gcc/tree-ssa-loop-niter.c
parentb8fff079189688a014f9db20afaabb90a3d7d1a6 (diff)
downloadgcc-52778e2a62d8e9eacf3333e2cb34b65a45aaf12d.zip
gcc-52778e2a62d8e9eacf3333e2cb34b65a45aaf12d.tar.gz
gcc-52778e2a62d8e9eacf3333e2cb34b65a45aaf12d.tar.bz2
tree-flow.h (loop_only_exit_p): Declare.
* 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. From-SVN: r137437
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r--gcc/tree-ssa-loop-niter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c
index 74153fd..80b45c2 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;