gimple.h (stmt_can_terminate_bb_p): New function.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 14 Jul 2016 13:52:21 +0000 (15:52 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 14 Jul 2016 13:52:21 +0000 (13:52 +0000)
commit21bcd7bedde07878098db00fc4042a85939077a2
treec64e3b6ecc0d7508eecfd453d8dd19500d078863
parent91f35b7f975ae3c36d2719ca15b33421c356fcb1
gimple.h (stmt_can_terminate_bb_p): New function.

* 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.

From-SVN: r238336
gcc/ChangeLog
gcc/gimple.h
gcc/tree-cfg.c
gcc/tree-ssa-loop-niter.c