From: Richard Biener Date: Wed, 19 Oct 2016 08:39:55 +0000 (+0000) Subject: domwalk.c (dom_walker::walk): Use RPO order. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7a3e0c653be4bd32f116dae06438896b7dc915b;p=gcc.git domwalk.c (dom_walker::walk): Use RPO order. 2016-10-19 Richard Biener * domwalk.c (dom_walker::walk): Use RPO order. From-SVN: r241329 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba1d46060e0..d5830d552bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-10-19 Richard Biener + + * domwalk.c (dom_walker::walk): Use RPO order. + 2016-10-19 Richard Biener * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize diff --git a/gcc/domwalk.c b/gcc/domwalk.c index 9b483113ffa..80ee7ff58eb 100644 --- a/gcc/domwalk.c +++ b/gcc/domwalk.c @@ -243,7 +243,7 @@ dom_walker::walk (basic_block bb) if (m_dom_direction == CDI_DOMINATORS) { postorder = XNEWVEC (int, n_basic_blocks_for_fn (cfun)); - postorder_num = inverted_post_order_compute (postorder); + postorder_num = pre_and_rev_post_order_compute (NULL, postorder, true); bb_postorder = XNEWVEC (int, last_basic_block_for_fn (cfun)); for (int i = 0; i < postorder_num; ++i) bb_postorder[postorder[i]] = i;