aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-05-04 11:37:05 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-05-04 11:37:05 +0000
commit3862ef76c66219fd7adbbd6e3884bc9c1ba9c606 (patch)
tree9e4572707089e2b42a80ecb24d4d3b00ae89d8a3 /gcc/varasm.c
parent6d0da573d22e446f7740f6340131b11f605715bc (diff)
downloadgcc-3862ef76c66219fd7adbbd6e3884bc9c1ba9c606.zip
gcc-3862ef76c66219fd7adbbd6e3884bc9c1ba9c606.tar.gz
gcc-3862ef76c66219fd7adbbd6e3884bc9c1ba9c606.tar.bz2
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. From-SVN: r247591
Diffstat (limited to 'gcc/varasm.c')
0 files changed, 0 insertions, 0 deletions