loop-dolop.c (doloop_optimize): Us likely max iteration bound.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 1 Jun 2016 15:26:46 +0000 (17:26 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 1 Jun 2016 15:26:46 +0000 (15:26 +0000)
* 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

gcc/ChangeLog
gcc/loop-doloop.c
gcc/tree-parloops.c
gcc/tree-ssa-loop-unswitch.c

index 128c2e4abef7624bd1f6efbc4e06a17f3a148748..c7486b2afcc3d98fb7bb53cc37dba10ac2b41e77 100644 (file)
@@ -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
index 6996c0bc0ef5b156fcf90d94116d3ea9d76cba6b..3eb9b11d5e1f8448f36c2d93f266dd205a032a97 100644 (file)
@@ -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)
     {
index f472717cec20eb05025385057296263fd840eaa6..1303ffc7d084c16287986d0567de788a5e537ff5 100644 (file)
@@ -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
index bf9fafa63b2bb600bf7ba0e63db5583425b4f343..73bdc6eab7d24c7d2fa9f7174663699557687510 100644 (file)
@@ -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))