tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use likely_max_stmt_executions_int.

* tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
	likely_max_stmt_executions_int.

From-SVN: r236852
This commit is contained in:
Jan Hubicka 2016-05-28 18:36:29 +02:00 committed by Jan Hubicka
parent 000220585d
commit c8cf746afb
2 changed files with 6 additions and 1 deletions

View 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> 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
* tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use

View File

@ -127,7 +127,7 @@ avg_loop_niter (struct loop *loop)
HOST_WIDE_INT niter = estimated_stmt_executions_int (loop); HOST_WIDE_INT niter = estimated_stmt_executions_int (loop);
if (niter == -1) if (niter == -1)
{ {
niter = max_stmt_executions_int (loop); niter = likely_max_stmt_executions_int (loop);
if (niter == -1 || niter > AVG_LOOP_NITER (loop)) if (niter == -1 || niter > AVG_LOOP_NITER (loop))
return AVG_LOOP_NITER (loop); return AVG_LOOP_NITER (loop);
} }