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 cf3c946dca97af98576192bc0f7a4644da469f50..8123c41e2a37c0938948ce77f1109a76f8d70c6f 100644 (file)
@@ -1,3 +1,8 @@
+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
index d770ec9e85af87608233eb6fa50c069cdc51e022..e6c49e9707b6abfb5e78249a511df6a2a7adc676 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);
     }