summaryrefslogtreecommitdiff
path: root/gcc/cfgloop.h
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2007-02-25 20:49:22 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2007-02-25 19:49:22 +0000
commit4839cb59b363834b37cf3fc1f024d87eead4fd30 (patch)
tree442c3c77bcfc1b33de609ff61cc1e7e4b84bc7e8 /gcc/cfgloop.h
parentfc8600f9c12ccb952cb38fbad4a2f34e0d958473 (diff)
downloadgcc-4839cb59b363834b37cf3fc1f024d87eead4fd30.tar.gz
tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix off-by-one error.
* tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix off-by-one error. (array_at_struct_end_p): New function. (idx_infer_loop_bounds): Use it. (estimate_numbers_of_iterations_loop): Export. * predict.c (predict_loops): Use estimated_loop_iterations_int. Do not use PRED_LOOP_EXIT on exits predicted by # of iterations. (tree_estimate_probability): Call record_loop_exits. * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ... (estimated_loop_iterations, estimated_loop_iterations_int, estimated_loop_iterations_tree): New functions. (analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine): Use estimated_loop_iterations_int. (analyze_miv_subscript): Use estimated_loop_iterations_tree. * predict.def (PRED_LOOP_ITERATIONS): Update comment. (PRED_LOOP_ITERATIONS_GUESSED): New. * cfgloop.c (record_loop_exits): Do nothing if there are no loops. * cfgloop.h (estimate_numbers_of_iterations_loop, estimated_loop_iterations_int): Declare. From-SVN: r122316
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r--gcc/cfgloop.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h
index 09eef08ca3d..c6cd7221aa7 100644
--- a/gcc/cfgloop.h
+++ b/gcc/cfgloop.h
@@ -265,6 +265,9 @@ extern bool just_once_each_iteration_p (const struct loop *, basic_block);
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);
+
/* Loop manipulation. */
extern bool can_duplicate_loop_p (struct loop *loop);