summaryrefslogtreecommitdiff
path: root/gcc/tree-flow.h
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-03 22:02:18 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-03 22:02:18 +0000
commit14f25899b4ec14f79a497a1421e1e3fc8c76e243 (patch)
tree9886efa3473e49dd9518ad36302fcd41d4de7204 /gcc/tree-flow.h
parent586b062a322b21649489e7a5d39e5441f8064f25 (diff)
downloadgcc-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-flow.h')
-rw-r--r--gcc/tree-flow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h
index 961054703db..5479c3342c7 100644
--- a/gcc/tree-flow.h
+++ b/gcc/tree-flow.h
@@ -1039,6 +1039,7 @@ void tree_ssa_iv_optimize (void);
unsigned tree_predictive_commoning (void);
bool parallelize_loops (void);
+bool loop_only_exit_p (const struct loop *, const_edge);
bool number_of_iterations_exit (struct loop *, edge,
struct tree_niter_desc *niter, bool);
tree find_loop_niter (struct loop *, edge *);