diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-03 22:02:18 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-03 22:02:18 +0000 |
commit | 14f25899b4ec14f79a497a1421e1e3fc8c76e243 (patch) | |
tree | 9886efa3473e49dd9518ad36302fcd41d4de7204 /gcc/tree-ssa-loop-niter.c | |
parent | 586b062a322b21649489e7a5d39e5441f8064f25 (diff) | |
download | gcc-14f25899b4ec14f79a497a1421e1e3fc8c76e243.tar.gz |
* 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
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r-- | gcc/tree-ssa-loop-niter.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |