Fix a bug that broke -freorder-functions

From-SVN: r177311
This commit is contained in:
David Li 2011-08-04 06:20:59 +00:00 committed by Xinliang David Li
parent 22508caed3
commit 9003789808
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-08-03 David Li <davidxl@google.com>
* profile.c (compute_branch_probabilities): Compute
function frequency after profile annotation.
2011-08-04 Alan Modra <amodra@gmail.com>
* config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify

View File

@ -748,6 +748,7 @@ compute_branch_probabilities (unsigned cfg_checksum, unsigned lineno_checksum)
}
counts_to_freqs ();
profile_status = PROFILE_READ;
compute_function_frequency ();
if (dump_file)
{