diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-30 10:16:54 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-30 10:16:54 +0000 |
commit | 2da8af1fee6b4356bbffcfd37e2f46da92d44441 (patch) | |
tree | 0a5ec4e5988630d02e881b207ae00719d0d5998c /gcc/passes.c | |
parent | e12f85b7aa9b1eb3802a3bba42954fec4bcb4bf5 (diff) | |
download | gcc-2da8af1fee6b4356bbffcfd37e2f46da92d44441.tar.gz |
* passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initilalize dump
files.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160047 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index ebbfd97cece..64555fdc826 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1670,8 +1670,12 @@ ipa_write_summaries_2 (struct opt_pass *pass, cgraph_node_set set, if (pass->tv_id) timevar_push (pass->tv_id); + pass_init_dump_file (pass); + ipa_pass->write_summary (set,vset); + pass_fini_dump_file (pass); + /* If a timevar is present, start it. */ if (pass->tv_id) timevar_pop (pass->tv_id); @@ -1784,8 +1788,12 @@ ipa_write_optimization_summaries_1 (struct opt_pass *pass, cgraph_node_set set, if (pass->tv_id) timevar_push (pass->tv_id); + pass_init_dump_file (pass); + ipa_pass->write_optimization_summary (set, vset); + pass_fini_dump_file (pass); + /* If a timevar is present, start it. */ if (pass->tv_id) timevar_pop (pass->tv_id); @@ -1840,8 +1848,12 @@ ipa_read_summaries_1 (struct opt_pass *pass) if (pass->tv_id) timevar_push (pass->tv_id); + pass_init_dump_file (pass); + ipa_pass->read_summary (); + pass_fini_dump_file (pass); + /* Stop timevar. */ if (pass->tv_id) timevar_pop (pass->tv_id); @@ -1886,8 +1898,12 @@ ipa_read_optimization_summaries_1 (struct opt_pass *pass) if (pass->tv_id) timevar_push (pass->tv_id); + pass_init_dump_file (pass); + ipa_pass->read_optimization_summary (); + pass_fini_dump_file (pass); + /* Stop timevar. */ if (pass->tv_id) timevar_pop (pass->tv_id); |