re PR tree-optimization/54937 (Invalid loop bound estimate)
commit053223551fd7253097117744fcafccd28c8941c0
authorJan Hubicka <jh@suse.cz>
Tue, 23 Oct 2012 10:00:19 +0000 (23 12:00 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 23 Oct 2012 10:00:19 +0000 (23 10:00 +0000)
tree01d502a4a89d9cd1c28d2e29499fd563893cfe5c
parent1a7de2015dfb81f40015a95be98abe50ad7382f0
re PR tree-optimization/54937 (Invalid loop bound estimate)

PR middle-end/54937
* tree-ssa-loop-niter.c (record_estimate): Do not try to lower
the bound of non-is_exit statements.
(maybe_lower_iteration_bound): Do it here.
(estimate_numbers_of_iterations_loop): Call it.
* gcc.c-torture/execute/pr54937.c: New testcase.
* gcc.dg/tree-ssa/cunroll-2.c: Update.

From-SVN: r192710
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr54937.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/cunroll-2.c
gcc/tree-ssa-loop-niter.c