aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.h
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-07-14 15:52:21 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-07-14 13:52:21 +0000
commit21bcd7bedde07878098db00fc4042a85939077a2 (patch)
treec64e3b6ecc0d7508eecfd453d8dd19500d078863 /gcc/gimple.h
parent91f35b7f975ae3c36d2719ca15b33421c356fcb1 (diff)
downloadgcc-21bcd7bedde07878098db00fc4042a85939077a2.zip
gcc-21bcd7bedde07878098db00fc4042a85939077a2.tar.gz
gcc-21bcd7bedde07878098db00fc4042a85939077a2.tar.bz2
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
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r--gcc/gimple.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h
index 1da719c..980bdf8 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. */