diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-04 19:35:23 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-04 19:35:23 +0000 |
commit | c470c5a9c593390d0bf3f4a6004c136b99120545 (patch) | |
tree | b3887b2fc44cec55b580768f354ae76eeb37fa87 /gcc/cgraph.h | |
parent | ee5a90d4400a2933babbea1fbf49543184368e7f (diff) | |
download | gcc-c470c5a9c593390d0bf3f4a6004c136b99120545.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167458 138bc75d-0d04-0410-961f-82ee72b054a4
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 99d549c328a..57a7e3bed22 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. */ |