diff options
author | Tom de Vries <tom@codesourcery.com> | 2011-11-15 23:04:39 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2011-11-15 23:04:39 +0000 |
commit | fa405d7bbec7228ad003a90fb9cc0266cd187db3 (patch) | |
tree | 6b24db6a6ea0eebdee5724b0c1e370a674559396 | |
parent | 1ff2fd21dc21c02b1da0e31b4a39ec782a371a0a (diff) | |
download | gcc-fa405d7bbec7228ad003a90fb9cc0266cd187db3.zip gcc-fa405d7bbec7228ad003a90fb9cc0266cd187db3.tar.gz gcc-fa405d7bbec7228ad003a90fb9cc0266cd187db3.tar.bz2 |
tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
2011-11-16 Tom de Vries <tom@codesourcery.com>
* tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
From-SVN: r181392
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-ssa-tail-merge.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a7fb9ea..01694e2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-11-16 Tom de Vries <tom@codesourcery.com> + + * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1. + 2011-11-16 Alan Modra <amodra@gmail.com> PR rtl-optimization/51051 diff --git a/gcc/tree-ssa-tail-merge.c b/gcc/tree-ssa-tail-merge.c index 39a3aab..a501b07 100644 --- a/gcc/tree-ssa-tail-merge.c +++ b/gcc/tree-ssa-tail-merge.c @@ -1396,6 +1396,11 @@ replace_block_by (basic_block bb1, basic_block bb2) pred_edge, UNKNOWN_LOCATION); } + bb2->frequency += bb1->frequency; + if (bb2->frequency > BB_FREQ_MAX) + bb2->frequency = BB_FREQ_MAX; + bb1->frequency = 0; + /* Do updates that use bb1, before deleting bb1. */ release_last_vdef (bb1); same_succ_flush_bb (bb1); |