tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
authorJakub Jelinek <jakub@redhat.com>
Thu, 31 Oct 2013 13:51:38 +0000 (14:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 31 Oct 2013 13:51:38 +0000 (14:51 +0100)
commitd8202b848c1d8b270fb9f82c8e91b507ec266cdb
treedffa484c461c05b7e871c844f87d11d31d6fe5d0
parentb319f79c92d4e8aad6c7a73e9a31a8cd93b372d4
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/ChangeLog
gcc/tree-cfg.c
gcc/tree-cfg.h
gcc/tree-vrp.c