aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.h
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2019-09-21 01:27:34 +0000
committerAndrew Pinski <apinski@marvell.com>2023-07-20 08:56:42 -0700
commit85a4e4f93ff251f206e9df3a0d47d5734ed328fc (patch)
treef20df9c53c12cccbb4d195cad9017e36f98a443a /gcc/dumpfile.h
parent70e46073910f2df3bd43decbfc530e16e59b3509 (diff)
downloadgcc-85a4e4f93ff251f206e9df3a0d47d5734ed328fc.zip
gcc-85a4e4f93ff251f206e9df3a0d47d5734ed328fc.tar.gz
gcc-85a4e4f93ff251f206e9df3a0d47d5734ed328fc.tar.bz2
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.
Diffstat (limited to 'gcc/dumpfile.h')
-rw-r--r--gcc/dumpfile.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h
index 7d5eca8..c419406 100644
--- a/gcc/dumpfile.h
+++ b/gcc/dumpfile.h
@@ -647,14 +647,11 @@ class auto_dump_scope
auto_dump_scope scope (NAME, USER_LOC)
extern void dump_function (int phase, tree fn);
-extern void print_combine_total_stats (void);
extern bool enable_rtl_dump_file (void);
/* In tree-dump.cc */
extern void dump_node (const_tree, dump_flags_t, FILE *);
-/* In combine.cc */
-extern void dump_combine_total_stats (FILE *);
/* In cfghooks.cc */
extern void dump_bb (FILE *, basic_block, int, dump_flags_t);