diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-05-04 11:37:05 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-05-04 11:37:05 +0000 |
commit | 10de1374e1bd9a06ff0dd2a54a9732a7096eeacb (patch) | |
tree | 9e4572707089e2b42a80ecb24d4d3b00ae89d8a3 /gcc/gensupport.c | |
parent | 2a9d6f178af732cd54a5fec05e3f9cb6664edc3a (diff) | |
download | gcc-10de1374e1bd9a06ff0dd2a54a9732a7096eeacb.tar.gz |
Cap niter_for_unrolled_loop to upper bound
For the reasons explained in PR77536, niter_for_unrolled_loop assumes 5
iterations in the absence of profiling information, although it doesn't
increase beyond the estimate for the original loop. This left a hole in
which the new estimate could be less than the old one but still greater
than the limit imposed by CEIL (nb_iterations_upper_bound, unroll factor).
2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
* tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
to explain the use of truncating division. Cap the number of
iterations to the maximum given by nb_iterations_upper_bound,
if defined.
gcc/testsuite/
* gcc.dg/vect/vect-profile-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247591 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gensupport.c')
0 files changed, 0 insertions, 0 deletions