From: Jeff Law Date: Mon, 20 Nov 2017 17:29:33 +0000 (-0700) Subject: gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Do not set BB_VISITED here. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c66dd9b3330192da7b5e173acbe7bb58bf7a89d;p=gcc.git gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Do not set BB_VISITED here. * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Do not set BB_VISITED here. (evrp_range_analyzer::enter): Set BB_VISITED here instead. From-SVN: r254960 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index adba8872261..dacc9d03b7a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-11-20 Jeff Law + + * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Do not + set BB_VISITED here. + (evrp_range_analyzer::enter): Set BB_VISITED here instead. + 2017-11-20 Bin Cheng * tree-predcom.c: Add general comment on Store-Store chains. diff --git a/gcc/gimple-ssa-evrp.c b/gcc/gimple-ssa-evrp.c index 76eeb13c63e..8afec31e76b 100644 --- a/gcc/gimple-ssa-evrp.c +++ b/gcc/gimple-ssa-evrp.c @@ -160,6 +160,7 @@ evrp_range_analyzer::enter (basic_block bb) stack.safe_push (std::make_pair (NULL_TREE, (value_range *)NULL)); record_ranges_from_incoming_edge (bb); record_ranges_from_phis (bb); + bb->flags |= BB_VISITED; } /* Find new range for NAME such that (OP CODE LIMIT) is true. */ @@ -530,8 +531,6 @@ evrp_dom_walker::before_dom_children (basic_block bb) } } - bb->flags |= BB_VISITED; - return taken_edge; }