From c8cf746afb5b33bcacbb1cb1a137a1899006c131 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 28 May 2016 18:36:29 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-loop-ivopts.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf3c946dca9..8123c41e2a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-27 Jan Hubicka + + * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use + likely_max_stmt_executions_int. + 2016-05-27 Jan Hubicka * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index d770ec9e85a..e6c49e9707b 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -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); } -- 2.30.2