From 531f0ff8f6e986e340d9df9601a658a4ef03edf0 Mon Sep 17 00:00:00 2001 From: hubicka Date: Thu, 14 Jul 2016 13:52:21 +0000 Subject: * 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/gimple.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/gimple.h') diff --git a/gcc/gimple.h b/gcc/gimple.h index 1da719c52e0..980bdf8314c 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -1526,6 +1526,7 @@ extern void gimple_seq_set_location (gimple_seq, location_t); extern void gimple_seq_discard (gimple_seq); extern void maybe_remove_unused_call_args (struct function *, gimple *); extern bool gimple_inexpensive_call_p (gcall *); +extern bool stmt_can_terminate_bb_p (gimple *); /* Formal (expression) temporary table handling: multiple occurrences of the same scalar expression are evaluated into the same temporary. */ -- cgit v1.2.1