tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use likely_max_stmt_execution...
authorJan Hubicka <hubicka@ucw.cz>
Sat, 28 May 2016 16:36:29 +0000 (18:36 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 28 May 2016 16:36:29 +0000 (16:36 +0000)
* tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
likely_max_stmt_executions_int.

From-SVN: r236852

gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c

index cf3c946..8123c41 100644 (file)
@@ -1,5 +1,10 @@
 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
 
+       * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
+       likely_max_stmt_executions_int.
+
+2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
+
        * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
        likely_max_stmt_executions_int.
 
index d770ec9..e6c49e9 100644 (file)
@@ -127,7 +127,7 @@ avg_loop_niter (struct loop *loop)
   HOST_WIDE_INT niter = estimated_stmt_executions_int (loop);
   if (niter == -1)
     {
-      niter = max_stmt_executions_int (loop);
+      niter = likely_max_stmt_executions_int (loop);
       if (niter == -1 || niter > AVG_LOOP_NITER (loop))
        return AVG_LOOP_NITER (loop);
     }