From d8202b848c1d8b270fb9f82c8e91b507ec266cdb Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 31 Oct 2013 14:51:38 +0100 Subject: 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 --- gcc/tree-cfg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/tree-cfg.h') 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); -- cgit v1.1