aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-10-31 14:51:38 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-10-31 14:51:38 +0100
commitd8202b848c1d8b270fb9f82c8e91b507ec266cdb (patch)
treedffa484c461c05b7e871c844f87d11d31d6fe5d0 /gcc/tree-cfg.h
parentb319f79c92d4e8aad6c7a73e9a31a8cd93b372d4 (diff)
downloadgcc-d8202b848c1d8b270fb9f82c8e91b507ec266cdb.zip
gcc-d8202b848c1d8b270fb9f82c8e91b507ec266cdb.tar.gz
gcc-d8202b848c1d8b270fb9f82c8e91b507ec266cdb.tar.bz2
tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
* tree-cfg.c (assert_unreachable_fallthru_edge_p): New function. * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype. * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function. (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate uses but in the condition and ASSERT_EXPR and the other successor of the predecessor bb is __builtin_unreachable (), set_range_info of the ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs. From-SVN: r204255
Diffstat (limited to 'gcc/tree-cfg.h')
-rw-r--r--gcc/tree-cfg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-cfg.h b/gcc/tree-cfg.h
index d6a5d8f..c5c105d 100644
--- a/gcc/tree-cfg.h
+++ b/gcc/tree-cfg.h
@@ -51,6 +51,7 @@ extern bool is_ctrl_stmt (gimple);
extern bool is_ctrl_altering_stmt (gimple);
extern bool simple_goto_p (gimple);
extern bool stmt_ends_bb_p (gimple);
+extern bool assert_unreachable_fallthru_edge_p (edge);
extern void delete_tree_cfg_annotations (void);
extern gimple first_stmt (basic_block);
extern gimple last_stmt (basic_block);