From 85a4e4f93ff251f206e9df3a0d47d5734ed328fc Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sat, 21 Sep 2019 01:27:34 +0000 Subject: Move combine over to statistics_counter_event. Since we have statistics_counter_event now, combine should use that instead of it is own custom printing of statistics. The only thing that is not done any more after this patch is printing out the total stats for the whole TU. Note you need to use -fdump-rtl-combine-stats to get the stats in the combine dump unlike before where the stats was dumped directly into the file. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * combine.cc (dump_combine_stats): Remove. (dump_combine_total_stats): Remove. (total_attempts, total_merges, total_extras, total_successes): Remove. (combine_instructions): Don't increment total stats instead use statistics_counter_event. * dumpfile.cc (print_combine_total_stats): Remove. * dumpfile.h (print_combine_total_stats): Remove. (dump_combine_total_stats): Remove. * passes.cc (finish_optimization_passes): Don't call print_combine_total_stats. * rtl.h (dump_combine_total_stats): Remove. (dump_combine_stats): Remove. --- gcc/dumpfile.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gcc/dumpfile.cc') diff --git a/gcc/dumpfile.cc b/gcc/dumpfile.cc index 51f68c8..a2050d1 100644 --- a/gcc/dumpfile.cc +++ b/gcc/dumpfile.cc @@ -2074,15 +2074,6 @@ dump_function (int phase, tree fn) } } -/* Print information from the combine pass on dump_file. */ - -void -print_combine_total_stats (void) -{ - if (dump_file) - dump_combine_total_stats (dump_file); -} - /* Enable RTL dump for all the RTL passes. */ bool -- cgit v1.1