mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-27 14:31:15 +08:00
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:
parent
000220585d
commit
c8cf746afb
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user