diff options
author | Jan Hubicka <jh@suse.cz> | 2010-10-16 18:59:07 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-10-16 16:59:07 +0000 |
commit | 844db5d09eb972e4f9188b77854d76ce345ca9ee (patch) | |
tree | 729e8daec41bc5163de53301f1aa679b1c2fadf7 /gcc/lto-cgraph.c | |
parent | 6eb6875d7ec398935d3ae76f805e33db0c3773dd (diff) | |
download | gcc-844db5d09eb972e4f9188b77854d76ce345ca9ee.zip gcc-844db5d09eb972e4f9188b77854d76ce345ca9ee.tar.gz gcc-844db5d09eb972e4f9188b77854d76ce345ca9ee.tar.bz2 |
cgraph.c (dump_cgraph_node): Dump same_comdat_group, only_called_at_startup and only_called_at_exit.
* cgraph.c (dump_cgraph_node): Dump same_comdat_group,
only_called_at_startup and only_called_at_exit.
(cgraph_propagate_frequency): Compute only_called_at_startup and
only_called_at_exit.
* cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
only_called_at_exit.
* lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
flags.
* predict.c (compute_function_frequency): Initialize the new flags.
From-SVN: r165560
Diffstat (limited to 'gcc/lto-cgraph.c')
-rw-r--r-- | gcc/lto-cgraph.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index b61e5d1..85a7c40 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -518,6 +518,8 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node, bp_pack_value (&bp, node->alias, 1); bp_pack_value (&bp, node->finalized_by_frontend, 1); bp_pack_value (&bp, node->frequency, 2); + bp_pack_value (&bp, node->only_called_at_startup, 1); + bp_pack_value (&bp, node->only_called_at_exit, 1); lto_output_bitpack (&bp); lto_output_uleb128_stream (ob->main_stream, node->resolution); @@ -978,6 +980,8 @@ input_overwrite_node (struct lto_file_decl_data *file_data, node->alias = bp_unpack_value (bp, 1); node->finalized_by_frontend = bp_unpack_value (bp, 1); node->frequency = (enum node_frequency)bp_unpack_value (bp, 2); + node->only_called_at_startup = bp_unpack_value (bp, 1); + node->only_called_at_exit = bp_unpack_value (bp, 1); node->resolution = resolution; } |