diff options
author | Jan Hubicka <jh@suse.cz> | 2013-03-28 16:29:40 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2013-03-28 15:29:40 +0000 |
commit | 89ab31c15784b9d163e15688cc7c5bd589bcf465 (patch) | |
tree | 35ba8ad462caf0907fefeff0406e6ef831248073 /gcc/lto-cgraph.c | |
parent | 525ec7ee9ca06a99b3826ded6fcba68cd5ab88c1 (diff) | |
download | gcc-89ab31c15784b9d163e15688cc7c5bd589bcf465.zip gcc-89ab31c15784b9d163e15688cc7c5bd589bcf465.tar.gz gcc-89ab31c15784b9d163e15688cc7c5bd589bcf465.tar.bz2 |
data-streamer-in.c (streamer_read_gcov_count): New function.
* data-streamer-in.c (streamer_read_gcov_count): New function.
* gimple-streamer-out.c: Include value-prof.h.
(output_gimple_stmt): Output histogram.
(output_bb): Use streamer_write_gcov_count.
* value-prof.c: Include data-streamer.h
(dump_histogram_value): Add HIST_TYPE_MAX.
(stream_out_histogram_value): New function.
(stream_in_histogram_value): New function.
* value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
(stream_out_histogram_value, stream_in_histogram_value): Declare.
* data-streamer-out.c (streamer_write_gcov_count): New function.
(streamer_write_gcov_count_stream): New function.
* lto-cgraph.c (lto_output_edge): Update counter streaming.
(lto_output_node): Likewise.
(input_node, input_edge): Likewise.
* lto-streamer-out.c (output_cfg): Update streaming.
* lto-streamer-in.c (input_cfg): Likewise.
* data-streamer.h (streamer_write_gcov_count,
streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
* gimple-streamer-in.c: Include value-prof.h
(input_gimple_stmt): Input histograms.
(input_bb): Update profile streaming.
From-SVN: r197205
Diffstat (limited to 'gcc/lto-cgraph.c')
-rw-r--r-- | gcc/lto-cgraph.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index 8cf57c6..d9d798a 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -267,7 +267,7 @@ lto_output_edge (struct lto_simple_output_block *ob, struct cgraph_edge *edge, streamer_write_hwi_stream (ob->main_stream, ref); } - streamer_write_hwi_stream (ob->main_stream, edge->count); + streamer_write_gcov_count_stream (ob->main_stream, edge->count); bp = bitpack_create (ob->main_stream); uid = (!gimple_has_body_p (edge->caller->symbol.decl) @@ -429,7 +429,7 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node, lto_output_fn_decl_index (ob->decl_state, ob->main_stream, node->symbol.decl); - streamer_write_hwi_stream (ob->main_stream, node->count); + streamer_write_gcov_count_stream (ob->main_stream, node->count); streamer_write_hwi_stream (ob->main_stream, node->count_materialization_scale); streamer_write_hwi_stream (ob->main_stream, @@ -948,7 +948,7 @@ input_node (struct lto_file_decl_data *file_data, if (order >= symtab_order) symtab_order = order + 1; - node->count = streamer_read_hwi (ib); + node->count = streamer_read_gcov_count (ib); node->count_materialization_scale = streamer_read_hwi (ib); count = streamer_read_hwi (ib); @@ -1109,7 +1109,7 @@ input_edge (struct lto_input_block *ib, vec<symtab_node> nodes, else callee = NULL; - count = (gcov_type) streamer_read_hwi (ib); + count = streamer_read_gcov_count (ib); bp = streamer_read_bitpack (ib); inline_failed = bp_unpack_enum (&bp, cgraph_inline_failed_enum, CIF_N_REASONS); |