aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-section-in.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-03-29 19:07:34 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2013-03-29 18:07:34 +0000
commit0208f7dab09ed1ceb3fcfceff049e24cc05d69fa (patch)
tree9b74c5279cc4912f4df1c50d5e555c5dc9cf64ef /gcc/lto-section-in.c
parent5a6ccc943fa6c7f121a47e96a19d73a7531de311 (diff)
downloadgcc-0208f7dab09ed1ceb3fcfceff049e24cc05d69fa.zip
gcc-0208f7dab09ed1ceb3fcfceff049e24cc05d69fa.tar.gz
gcc-0208f7dab09ed1ceb3fcfceff049e24cc05d69fa.tar.bz2
lto-cgraph.c (output_profile_summary, [...]): Use gcov streaming; stream hot bb threshold to ltrans.
* lto-cgraph.c (output_profile_summary, input_profile_summary): Use gcov streaming; stream hot bb threshold to ltrans. * predict.c (get_hot_bb_threshold): Break out from .... (maybe_hot_count_p): ... here. (set_hot_bb_threshold): New function. * lto-section-in.c (lto_section_name): Add profile. * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare. * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h and data-streamer.h (histogram_entry): New structure. (histogram, histogram_pool): New global vars. (histogram_hash): New structure. (histogram_hash::hash): New method. (histogram_hash::equal): Likewise. (account_time_size): New function. (cmp_counts): New function. (dump_histogram): New function. (ipa_profile_generate_summary): New function. (ipa_profile_write_summary): New function. (ipa_profile_read_summary): New function. (ipa_profile): Decide on threshold. (pass_ipa_profile): Add ipa_profile_write_summary and ipa_profile_read_summary. * Makefile.in (ipa.o): Update dependencies. * lto-streamer.h (LTO_section_ipa_profile): New section. From-SVN: r197243
Diffstat (limited to 'gcc/lto-section-in.c')
-rw-r--r--gcc/lto-section-in.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c
index 3a86151..0ef421f 100644
--- a/gcc/lto-section-in.c
+++ b/gcc/lto-section-in.c
@@ -55,6 +55,7 @@ const char *lto_section_name[LTO_N_SECTION_TYPES] =
"jmpfuncs",
"pureconst",
"reference",
+ "profile",
"symbol_nodes",
"opts",
"cgraphopt",