diff options
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); |