mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-25 12:51: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>
|
||||
|
||||
* 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);
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user