tree-flow.h (loop_only_exit_p): Declare.
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 3 Jul 2008 22:02:18 +0000 (22:02 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 3 Jul 2008 22:02:18 +0000 (22:02 +0000)
commit52778e2a62d8e9eacf3333e2cb34b65a45aaf12d
tree9886efa3473e49dd9518ad36302fcd41d4de7204
parentb8fff079189688a014f9db20afaabb90a3d7d1a6
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
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/loop_optimization3.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/loop_optimization3_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/loop_optimization3_pkg.ads [new file with mode: 0644]
gcc/tree-flow.h
gcc/tree-ssa-loop-ivopts.c
gcc/tree-ssa-loop-niter.c