diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2013-10-16 15:48:47 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2013-10-16 15:48:47 +0000 |
commit | 1ef88893457d51ad3429eab97fb6edd56c9db646 (patch) | |
tree | 8477f2ad269e9d4ebe53cbc7799f7b5a6c9dc5ca /gcc/loop-iv.c | |
parent | c22df64f91c2f4fcd22eb94ed55af08095e3ad78 (diff) | |
download | gcc-1ef88893457d51ad3429eab97fb6edd56c9db646.zip gcc-1ef88893457d51ad3429eab97fb6edd56c9db646.tar.gz gcc-1ef88893457d51ad3429eab97fb6edd56c9db646.tar.bz2 |
re PR tree-optimization/58697 (wrong code (segfaults) at -O3)
PR tree-optimization/58697
* cfgloop.c (get_estimated_loop_iterations_int): Rename from
estimated_loop_iterations_int.
(max_stmt_executions_int): Call get_max_loop_iterations_int.
(get_max_loop_iterations_int): New. HWINT version of
get_max_loop_iterations.
* cfgloop.h: Add prototypes.
* loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
* loop-unroll.c (decide_peel_once_rolling): Call
get_estimated_loop_iterations_int.
* tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
* tree-ssa-loop-niter.h: Tweak prototypes.
From-SVN: r203709
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r-- | gcc/loop-iv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index 07f28e3..b9bc334 100644 --- a/gcc/loop-iv.c +++ b/gcc/loop-iv.c @@ -3001,9 +3001,9 @@ find_simple_exit (struct loop *loop, struct niter_desc *desc) fprintf (dump_file, "\n"); fprintf (dump_file, " upper bound: %li\n", - (long)max_loop_iterations_int (loop)); + (long)get_max_loop_iterations_int (loop)); fprintf (dump_file, " realistic bound: %li\n", - (long)estimated_loop_iterations_int (loop)); + (long)get_estimated_loop_iterations_int (loop)); } else fprintf (dump_file, "Loop %d is not simple.\n", loop->num); |