From: Richard Biener Date: Mon, 22 Aug 2016 08:25:30 +0000 (+0000) Subject: tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43b7a577806ab9c11580e9034869dd5a8ba2e5fb;p=gcc.git tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order. 2016-08-22 Richard Biener * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order. From-SVN: r239653 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 265cc292e26..77300dcdd48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-08-22 Richard Biener + + * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order. + 2016-08-21 Uros Bizjak PR target/77270 diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index 736b841bc90..5d7739b5bb3 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -2099,7 +2099,8 @@ pass_forwprop::execute (function *fun) lattice.create (num_ssa_names); lattice.quick_grow_cleared (num_ssa_names); int *postorder = XNEWVEC (int, n_basic_blocks_for_fn (fun)); - int postorder_num = inverted_post_order_compute (postorder); + int postorder_num = pre_and_rev_post_order_compute_fn (cfun, NULL, + postorder, false); auto_vec to_fixup; to_purge = BITMAP_ALLOC (NULL); for (int i = 0; i < postorder_num; ++i)