diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2016-06-01 17:26:46 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2016-06-01 15:26:46 +0000 |
commit | ae7a7472714df7b444d9e63b54a265b60e1a5d81 (patch) | |
tree | cdd86a66b261ea4a1fbf488364b2c8612a47419d /gcc | |
parent | 6442a6f43b4525a08526f9e55419f567a1af776c (diff) | |
download | gcc-ae7a7472714df7b444d9e63b54a265b60e1a5d81.zip gcc-ae7a7472714df7b444d9e63b54a265b60e1a5d81.tar.gz gcc-ae7a7472714df7b444d9e63b54a265b60e1a5d81.tar.bz2 |
loop-dolop.c (doloop_optimize): Us likely max iteration bound.
* loop-dolop.c (doloop_optimize): Us likely max iteration bound.
* tree-parloops.c (parallelize_loops): likewise.
* tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
tree_unswitch_outer_loop): likewise.
From-SVN: r236998
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/loop-doloop.c | 2 | ||||
-rw-r--r-- | gcc/tree-parloops.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-unswitch.c | 4 |
4 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 128c2e4..c7486b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-06-01 Jan Hubicka <hubicka@ucw.cz> + + * loop-dolop.c (doloop_optimize): Us likely max iteration bound. + * tree-parloops.c (parallelize_loops): likewise. + * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop, + tree_unswitch_outer_loop): likewise. + 2016-06-01 Jakub Jelinek <jakub@redhat.com> PR middle-end/71371 diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c index 6996c0b..3eb9b11 100644 --- a/gcc/loop-doloop.c +++ b/gcc/loop-doloop.c @@ -638,7 +638,7 @@ doloop_optimize (struct loop *loop) est_niter = get_estimated_loop_iterations_int (loop); if (est_niter == -1) - est_niter = get_max_loop_iterations_int (loop); + est_niter = get_likely_max_loop_iterations_int (loop); if (est_niter >= 0 && est_niter < 3) { diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index f472717..1303ffc 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -3288,7 +3288,7 @@ parallelize_loops (bool oacc_kernels_p) estimated = estimated_stmt_executions_int (loop); if (estimated == -1) - estimated = max_stmt_executions_int (loop); + estimated = likely_max_stmt_executions_int (loop); /* FIXME: Bypass this check as graphite doesn't update the count and frequency correctly now. */ if (!flag_loop_parallelize_all diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c index bf9fafa6..73bdc6e 100644 --- a/gcc/tree-ssa-loop-unswitch.c +++ b/gcc/tree-ssa-loop-unswitch.c @@ -224,7 +224,7 @@ tree_unswitch_single_loop (struct loop *loop, int num) for unswitching. */ iterations = estimated_loop_iterations_int (loop); if (iterations < 0) - iterations = max_loop_iterations_int (loop); + iterations = likely_max_loop_iterations_int (loop); if (iterations >= 0 && iterations <= 1) { if (dump_file && (dump_flags & TDF_DETAILS)) @@ -442,7 +442,7 @@ tree_unswitch_outer_loop (struct loop *loop) for unswitching. */ iterations = estimated_loop_iterations_int (loop); if (iterations < 0) - iterations = max_loop_iterations_int (loop); + iterations = likely_max_loop_iterations_int (loop); if (iterations >= 0 && iterations <= 1) { if (dump_file && (dump_flags & TDF_DETAILS)) |