tree-vrp.c (adjust_range_with_scev): Use number of iteration estimate.
authorRichard Guenther <rguenther@suse.de>
Wed, 1 Sep 2010 11:39:55 +0000 (11:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 1 Sep 2010 11:39:55 +0000 (11:39 +0000)
commite34882831e29f2ca360bcab4ef51c82d894eaaca
treefb95bfb5f51d55210e47b9d172c749cf48f7008e
parenteacbdaaac11b43b389ed33dfb8d2390d5ca02bde
tree-vrp.c (adjust_range_with_scev): Use number of iteration estimate.

2010-09-01  Richard Guenther  <rguenther@suse.de>

* tree-vrp.c (adjust_range_with_scev): Use number of iteration
estimate.
(vrp_visit_phi_node): Delay using SCEV till we balloon the
range.
(execute_vrp): Compute number of iteration estimates.
* cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
* tree-flow.h (estimate_numbers_of_iterations): Likewise.
* tree-data-ref.c (estimated_loop_iterations): Adjust.
* tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
Infer loop bounds from undefined behavior based on a new
parameter.
(estimate_numbers_of_iterations): Likewise.
(scev_probably_wraps_p): Adjust.
* tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.

* gcc.dg/vect/vect-outer-fir.c: Adjust.
* gcc.dg/tree-ssa/vrp54.c: New testcase.
* gcc.c-torture/execute/20100827-1.c: Likewise.

From-SVN: r163724
gcc/ChangeLog
gcc/cfgloop.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20100827-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/vrp54.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-outer-fir.c
gcc/tree-data-ref.c
gcc/tree-flow.h
gcc/tree-ssa-loop-niter.c
gcc/tree-ssa-loop.c
gcc/tree-vrp.c