+2016-07-14 Jan Hubicka <hubicka@ucw.cz>
+
+ * 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.
+