* gimple.h (stmt_can_terminate_bb_p): New function.
commit531f0ff8f6e986e340d9df9601a658a4ef03edf0
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jul 2016 13:52:21 +0000 (14 13:52 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jul 2016 13:52:21 +0000 (14 13:52 +0000)
treec64e3b6ecc0d7508eecfd453d8dd19500d078863
parentd1242c9468f2504d4eba69a2009293706d390ff9
* gimple.h (stmt_can_terminate_bb_p): New function.
* tree-cfg.c (need_fake_edge_p): Rename to ...
(stmt_can_terminate_bb_p): ... this; return true if stmt can
throw external; handle const and pure calls.
* tree-ssa-loop-niter.c (loop_only_exit_p): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238336 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple.h
gcc/tree-cfg.c
gcc/tree-ssa-loop-niter.c