summaryrefslogtreecommitdiff
path: root/gcc/loop-iv.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-06-01 14:01:17 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-06-01 12:01:17 +0000
commit8c38360082278de6400ac277e15f75edecc8eb39 (patch)
treeae7e412f842bbcac3d8dcd2c7ef4fe40679efea6 /gcc/loop-iv.c
parent268143a480cf8e4142db3ebb2dadaf924f6f3303 (diff)
loop-unroll.c (decide_unroll_constant_iterations, [...]): Use likely upper bounds.
* 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. From-SVN: r236986
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));
}