diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2007-04-07 01:11:15 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-04-06 23:11:15 +0000 |
commit | ac84e05eb6a3cc6f2da0816537b5cbd5a5d58f1b (patch) | |
tree | 6e9884d45709a7814b362ea6e6dbf57ecb1ab63e /gcc/cfgloop.h | |
parent | 64199a9eedbd34833b7712d6da13d117fa3ef9f4 (diff) | |
download | gcc-ac84e05eb6a3cc6f2da0816537b5cbd5a5d58f1b.zip gcc-ac84e05eb6a3cc6f2da0816537b5cbd5a5d58f1b.tar.gz gcc-ac84e05eb6a3cc6f2da0816537b5cbd5a5d58f1b.tar.bz2 |
tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use argument "reliable".
* 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.
From-SVN: r123630
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 c5c1cf2..cbad81d 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); |