aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2013-10-16 15:48:47 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2013-10-16 15:48:47 +0000
commit1ef88893457d51ad3429eab97fb6edd56c9db646 (patch)
tree8477f2ad269e9d4ebe53cbc7799f7b5a6c9dc5ca /gcc/tree-ssa-loop-niter.h
parentc22df64f91c2f4fcd22eb94ed55af08095e3ad78 (diff)
downloadgcc-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/tree-ssa-loop-niter.h')
-rw-r--r--gcc/tree-ssa-loop-niter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-niter.h b/gcc/tree-ssa-loop-niter.h
index aa05282..1945507 100644
--- a/gcc/tree-ssa-loop-niter.h
+++ b/gcc/tree-ssa-loop-niter.h
@@ -30,7 +30,9 @@ extern bool finite_loop_p (struct loop *);
extern tree loop_niter_by_eval (struct loop *, edge);
extern tree find_loop_niter_by_eval (struct loop *, edge *);
extern bool estimated_loop_iterations (struct loop *, double_int *);
+extern HOST_WIDE_INT estimated_loop_iterations_int (struct loop *);
extern bool max_loop_iterations (struct loop *, double_int *);
+extern HOST_WIDE_INT max_loop_iterations_int (struct loop *);
extern HOST_WIDE_INT max_stmt_executions_int (struct loop *);
extern HOST_WIDE_INT estimated_stmt_executions_int (struct loop *);
extern bool max_stmt_executions (struct loop *, double_int *);