gimple.h (stmt_can_terminate_bb_p): New function.
[gcc.git] / gcc / ChangeLog
index 24b929812b64c1ef7bb122d641005e7d4b20feab..5830663300f04c3b5417658211b1ca35e0b531eb 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2016-07-14  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/71866