]> git.ipfire.org Git - thirdparty/gcc.git/commit
* tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Mar 2007 00:25:30 +0000 (00:25 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Mar 2007 00:25:30 +0000 (00:25 +0000)
commit4b4ab846d45c218ef2185b324ddb24133fe2337a
tree5428421105c29c278a57087c665dc954fb95d826
parent8e52e16855a7e53136e9ba8b92968b83890656a9
* tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
Update constant estimates of number of iterations.
(record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
argument renamed to "realistic".
(compute_estimated_nb_iterations): Removed.
(record_niter_bound): New function.
(idx_infer_loop_bounds): For possible but unlikely tail arrays,
call record_nonwrapping_iv with upper = false.
(infer_loop_bounds_from_signedness): Pass upper argument to
record_nonwrapping_iv.
(estimate_numbers_of_iterations_loop): Do not call
compute_estimated_nb_iterations.  Record estimate based on profile
information.  Initialize the constant estimates of number of
iterations.
* tree-data-ref.c (estimated_loop_iterations): Return the recorded
estimates.
* tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
number of iterations is too small.
* cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
(EST_NOT_AVAILABLE): Removed.
(struct loop): Replace estimated_nb_iterations by any_upper_bound,
nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
fields.

* gcc.dg/tree-ssa/prefetch-5.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122969 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgloop.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/prefetch-5.c [new file with mode: 0644]
gcc/tree-data-ref.c
gcc/tree-ssa-loop-niter.c
gcc/tree-ssa-loop-prefetch.c