diff options
author | Jan Hubicka <jh@suse.cz> | 2010-12-04 20:35:23 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-12-04 19:35:23 +0000 |
commit | db0bf14f6b2ae9e3a1581522a9c4b90ac5453a06 (patch) | |
tree | b3887b2fc44cec55b580768f354ae76eeb37fa87 /gcc/cgraph.h | |
parent | f3007348c3fdb811969f942a6b3466f372067fda (diff) | |
download | gcc-db0bf14f6b2ae9e3a1581522a9c4b90ac5453a06.zip gcc-db0bf14f6b2ae9e3a1581522a9c4b90ac5453a06.tar.gz gcc-db0bf14f6b2ae9e3a1581522a9c4b90ac5453a06.tar.bz2 |
re PR driver/46760 (LTO bootstrap doesn't work with FDO)
PR tree-optimization/46760
* cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
* cgraph.h (struct cgraph_node): Add count_materialization_scale.
* lto-cgraph.c (lto_output_edge): Fix assert.
(lto_output_node): Output count_materialization_scale.
(output_profile_summary): Output only runs and sum_max.
(input_node): Input count_materialization_scale.
(input_profile_summary): Read data into file specific gcov summary.
(merge_profile_summaries): New function.
(input_cgraph): Update call of input_profile_summary;
call merge_profile_summaries.
* lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
rescale counts at read in.
(intput_bb): Likewise.
(input_function): Update call of input_bb.
(lto_read_body): Update call of input_cfg.
* lto-streamer.h: Inlclude gcov-io.h
(lto_file_decl_data): Add gcov_ctr_summary.
From-SVN: r167458
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 99d549c..57a7e3b 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -233,6 +233,9 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.previous"))) cgraph_node { /* Expected number of executions: calculated in profile.c. */ gcov_type count; + /* How to scale counts at materialization time; used to merge + LTO units with different number of profile runs. */ + int count_materialization_scale; /* Unique id of the node. */ int uid; /* Ordering of all cgraph nodes. */ |