diff options
author | Jan Hubicka <jh@suse.cz> | 2010-12-04 23:00:12 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-12-04 22:00:12 +0000 |
commit | 40e584a1b7e44113f9601766f1a8544335e1419e (patch) | |
tree | d569fd073d1e7730591579ceaca5c7d83ebd6ea5 /gcc/lto-cgraph.c | |
parent | db0bf14f6b2ae9e3a1581522a9c4b90ac5453a06 (diff) | |
download | gcc-40e584a1b7e44113f9601766f1a8544335e1419e.zip gcc-40e584a1b7e44113f9601766f1a8544335e1419e.tar.gz gcc-40e584a1b7e44113f9601766f1a8544335e1419e.tar.bz2 |
Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
* Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
* lto-cgraph.c (merge_profile_summaries): Fix thinko.
From-SVN: r167459
Diffstat (limited to 'gcc/lto-cgraph.c')
-rw-r--r-- | gcc/lto-cgraph.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index 140a926..76597a0 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -1504,16 +1504,14 @@ merge_profile_summaries (struct lto_file_decl_data **file_data_vec) During LTRANS we already have values of count_materialization_scale computed, so just update them. */ for (node = cgraph_nodes; node; node = node->next) - if (node->local.lto_file_data->profile_info.run_max) + if (node->local.lto_file_data->profile_info.runs) { int scale; - if (node->local.lto_file_data->profile_info.runs) - scale = - ((node->count_materialization_scale * max_runs - + node->local.lto_file_data->profile_info.run_max / 2) - / node->local.lto_file_data->profile_info.run_max); - else - scale = node->count_materialization_scale; + + scale = + ((node->count_materialization_scale * max_runs + + node->local.lto_file_data->profile_info.runs / 2) + / node->local.lto_file_data->profile_info.runs); node->count_materialization_scale = scale; if (scale < 0) fatal_error ("Profile information in %s corrupted", |