diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-06 23:11:15 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-06 23:11:15 +0000 |
commit | d97e22fb65bb6365d79ae4f291981c27bc0f954a (patch) | |
tree | 6e9884d45709a7814b362ea6e6dbf57ecb1ab63e /gcc/cfgloop.h | |
parent | 24fbb6038f8768e9a8e7ad118abfd18b9f6aa221 (diff) | |
download | gcc-d97e22fb65bb6365d79ae4f291981c27bc0f954a.tar.gz |
* tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
argument "reliable".
(infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
Add argument "reliable". Propagate it through calls.
(infer_loop_bounds_from_undefined): Derive number of iterations
estimates from references in blocks that do not dominate loop latch.
(gcov_type_to_double_int): New function.
(estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
and expected_loop_iterations_unbounded.
* cfgloopanal.c (expected_loop_iterations_unbounded): New function.
(expected_loop_iterations): Use expected_loop_iterations_unbounded.
* tree-data-ref.c (estimated_loop_iterations): Export.
(get_references_in_stmt): Fix -- do not return addresses of local
objects.
* cfgloop.h (expected_loop_iterations_unbounded,
estimated_loop_iterations): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123630 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r-- | gcc/cfgloop.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index c5c1cf25b42..cbad81d27f0 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -262,11 +262,13 @@ extern void verify_loop_structure (void); /* Loop analysis. */ extern bool just_once_each_iteration_p (const struct loop *, basic_block); +gcov_type expected_loop_iterations_unbounded (const struct loop *); extern unsigned expected_loop_iterations (const struct loop *); extern rtx doloop_condition_get (rtx); void estimate_numbers_of_iterations_loop (struct loop *); HOST_WIDE_INT estimated_loop_iterations_int (struct loop *, bool); +bool estimated_loop_iterations (struct loop *, bool, double_int *); /* Loop manipulation. */ extern bool can_duplicate_loop_p (struct loop *loop); |