diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-20 23:47:35 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-20 23:47:35 +0000 |
commit | 6b40961666f073231ed8a76e6e33deeda063cde7 (patch) | |
tree | 8247eb4232e8be98b7f61bd68bab2fd1a9f06ca3 /gcc/loop-unroll.c | |
parent | e6b1b76450af5f98696ecedd4bd9a0ed18cdb2a6 (diff) | |
parent | fc1ce0cf396bf638746d546a557158d87f13849b (diff) | |
download | gcc-6b40961666f073231ed8a76e6e33deeda063cde7.tar.gz |
Merge in trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@203881 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r-- | gcc/loop-unroll.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c index b2587bb6aee..f216f715522 100644 --- a/gcc/loop-unroll.c +++ b/gcc/loop-unroll.c @@ -469,7 +469,7 @@ decide_peel_once_rolling (struct loop *loop, int flags ATTRIBUTE_UNUSED) || desc->infinite || !desc->const_iter || (desc->niter != 0 - && max_loop_iterations_int (loop) != 0)) + && get_max_loop_iterations_int (loop) != 0)) { if (dump_file) fprintf (dump_file, @@ -694,8 +694,8 @@ decide_unroll_constant_iterations (struct loop *loop, int flags) than one exit it may well loop less than determined maximal number of iterations. */ if (desc->niter < 2 * nunroll - || ((estimated_loop_iterations (loop, &iterations) - || max_loop_iterations (loop, &iterations)) + || ((get_estimated_loop_iterations (loop, &iterations) + || get_max_loop_iterations (loop, &iterations)) && wi::ltu_p (iterations, 2 * nunroll))) { if (dump_file) @@ -993,8 +993,8 @@ decide_unroll_runtime_iterations (struct loop *loop, int flags) } /* Check whether the loop rolls. */ - if ((estimated_loop_iterations (loop, &iterations) - || max_loop_iterations (loop, &iterations)) + if ((get_estimated_loop_iterations (loop, &iterations) + || get_max_loop_iterations (loop, &iterations)) && wi::ltu_p (iterations, 2 * nunroll)) { if (dump_file) @@ -1378,7 +1378,7 @@ decide_peel_simple (struct loop *loop, int flags) } /* If we have realistic estimate on number of iterations, use it. */ - if (estimated_loop_iterations (loop, &iterations)) + if (get_estimated_loop_iterations (loop, &iterations)) { /* TODO: unsigned/signed confusion */ if (wi::leu_p (npeel, iterations)) @@ -1397,7 +1397,7 @@ decide_peel_simple (struct loop *loop, int flags) } /* If we have small enough bound on iterations, we can still peel (completely unroll). */ - else if (max_loop_iterations (loop, &iterations) + else if (get_max_loop_iterations (loop, &iterations) && wi::ltu_p (iterations, npeel)) npeel = iterations.to_shwi () + 1; else @@ -1547,8 +1547,8 @@ decide_unroll_stupid (struct loop *loop, int flags) } /* Check whether the loop rolls. */ - if ((estimated_loop_iterations (loop, &iterations) - || max_loop_iterations (loop, &iterations)) + if ((get_estimated_loop_iterations (loop, &iterations) + || get_max_loop_iterations (loop, &iterations)) && wi::ltu_p (iterations, 2 * nunroll)) { if (dump_file) |