diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2016-06-01 14:01:17 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2016-06-01 12:01:17 +0000 |
commit | 8c38360082278de6400ac277e15f75edecc8eb39 (patch) | |
tree | ae7e412f842bbcac3d8dcd2c7ef4fe40679efea6 /gcc/loop-iv.c | |
parent | 268143a480cf8e4142db3ebb2dadaf924f6f3303 (diff) | |
download | gcc-8c38360082278de6400ac277e15f75edecc8eb39.zip gcc-8c38360082278de6400ac277e15f75edecc8eb39.tar.gz gcc-8c38360082278de6400ac277e15f75edecc8eb39.tar.bz2 |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index fecaf8f..57fb8c1 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)); } |