summaryrefslogtreecommitdiff
path: root/gcc/loop-iv.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2016-06-01 12:01:17 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2016-06-01 12:01:17 +0000
commit53b01069945a5c1dd8ecb1a34d3f73ad86965112 (patch)
treeae7e412f842bbcac3d8dcd2c7ef4fe40679efea6 /gcc/loop-iv.c
parent9c9a6c2515033aabbba5a037674573526ab37319 (diff)
downloadgcc-53b01069945a5c1dd8ecb1a34d3f73ad86965112.tar.gz
* loop-unroll.c (decide_unroll_constant_iterations,
decide_unroll_runtime_iterations, decide_unroll_stupid): Use likely upper bounds. * loop-iv.c (find_simple_exit): Dump likely upper bounds. * gcc.dg/unroll-6.c: Update template. * gcc.dg/unroll-7.c: New testcase. * gcc.dg/unroll-8.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236986 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r--gcc/loop-iv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c
index fecaf8f110a..57fb8c1fa7f 100644
--- a/gcc/loop-iv.c
+++ b/gcc/loop-iv.c
@@ -2998,6 +2998,8 @@ find_simple_exit (struct loop *loop, struct niter_desc *desc)
fprintf (dump_file, " upper bound: %li\n",
(long)get_max_loop_iterations_int (loop));
+ fprintf (dump_file, " likely upper bound: %li\n",
+ (long)get_likely_max_loop_iterations_int (loop));
fprintf (dump_file, " realistic bound: %li\n",
(long)get_estimated_loop_iterations_int (loop));
}