]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/loop-iv.c
re PR tree-optimization/58697 (wrong code (segfaults) at -O3)
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 16 Oct 2013 15:48:47 +0000 (15:48 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Wed, 16 Oct 2013 15:48:47 +0000 (15:48 +0000)
commit1ef88893457d51ad3429eab97fb6edd56c9db646
tree8477f2ad269e9d4ebe53cbc7799f7b5a6c9dc5ca
parentc22df64f91c2f4fcd22eb94ed55af08095e3ad78
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
gcc/ChangeLog
gcc/cfgloop.c
gcc/cfgloop.h
gcc/loop-iv.c
gcc/loop-unroll.c
gcc/loop-unswitch.c
gcc/tree-ssa-loop-niter.c
gcc/tree-ssa-loop-niter.h