tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not predict loops...
commitf9bf4777c1f93f733b4e99e44dd176417ed0afca
authorJan Hubicka <jh@suse.cz>
Sun, 14 Oct 2012 16:18:26 +0000 (14 18:18 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 14 Oct 2012 16:18:26 +0000 (14 16:18 +0000)
tree14ab7474f3d373fee0bea0afe2d5c0a3d96fa5e5
parentca6729e2ed7b8a1308fdfdec0edcb6e9240f3258
tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not predict loops with multiple exits realistically.

* tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
predict loops with multiple exits realistically.
* cfgloopanal.c (single_likely_exit): New function.

* gcc.dg/unroll_5.c: New testcase.

From-SVN: r192433
gcc/ChangeLog
gcc/cfgloopanal.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/unroll_5.c [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c