r122316 - in /trunk/gcc: ChangeLog cfgloop.c cf...
rakdver@gcc.gnu.org
rakdver@gcc.gnu.org
Sun Feb 25 19:49:00 GMT 2007
Author: rakdver
Date: Sun Feb 25 19:49:22 2007
New Revision: 122316
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122316
Log:
* 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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfgloop.c
trunk/gcc/cfgloop.h
trunk/gcc/predict.c
trunk/gcc/predict.def
trunk/gcc/tree-data-ref.c
trunk/gcc/tree-ssa-loop-niter.c
More information about the Gcc-cvs
mailing list