diff options
author | Richard Guenther <rguenther@suse.de> | 2008-05-20 12:34:06 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-05-20 12:34:06 +0000 |
commit | 019026537472eae913ccac60774d6e6801c121f8 (patch) | |
tree | c9415d7b8136e0a8e6c5dcba11dcce11ac90a654 /gcc/tree-ssa-dom.c | |
parent | e13a4010afe69b0bb99bfcb87215e6af24f53c2f (diff) | |
download | gcc-019026537472eae913ccac60774d6e6801c121f8.zip gcc-019026537472eae913ccac60774d6e6801c121f8.tar.gz gcc-019026537472eae913ccac60774d6e6801c121f8.tar.bz2 |
tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
2008-05-20 Richard Guenther <rguenther@suse.de>
* tree-ssa-reassoc.c (fini_reassoc): Use the statistics
infrastructure.
* tree-ssa-sccvn.c (process_scc): Likewise.
* tree-ssa-sink.c (execute_sink_code): Likewise.
* tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
* tree-vrp.c (process_assert_insertions): Likewise.
* tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
(perform_tree_ssa_dce): Likewise.
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
(dump_dominator_optimization_stats): Likewise.
* tree-vectorizer.c (vectorize_loops): Likewise.
* gcc.dg/tree-ssa/ssa-sink-1.c: Adjust.
* gcc.dg/tree-ssa/ssa-sink-2.c: Likewise.
* gcc.dg/tree-ssa/ssa-sink-3.c: Likewise.
* gcc.dg/tree-ssa/ssa-sink-4.c: Likewise.
From-SVN: r135611
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index c4145b3..255f24b 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -357,6 +357,13 @@ tree_ssa_dominator_optimize (void) SSA_NAME_VALUE (name) = NULL; } + statistics_counter_event (cfun, "Redundant expressions eliminated", + opt_stats.num_re); + statistics_counter_event (cfun, "Constants propagated", + opt_stats.num_const_prop); + statistics_counter_event (cfun, "Copies propagated", + opt_stats.num_copy_prop); + /* Debugging dumps. */ if (dump_file && (dump_flags & TDF_STATS)) dump_dominator_optimization_stats (dump_file); @@ -868,25 +875,11 @@ record_equivalences_from_incoming_edge (basic_block bb) void dump_dominator_optimization_stats (FILE *file) { - long n_exprs; - fprintf (file, "Total number of statements: %6ld\n\n", opt_stats.num_stmts); fprintf (file, "Exprs considered for dominator optimizations: %6ld\n", opt_stats.num_exprs_considered); - n_exprs = opt_stats.num_exprs_considered; - if (n_exprs == 0) - n_exprs = 1; - - fprintf (file, " Redundant expressions eliminated: %6ld (%.0f%%)\n", - opt_stats.num_re, PERCENT (opt_stats.num_re, - n_exprs)); - fprintf (file, " Constants propagated: %6ld\n", - opt_stats.num_const_prop); - fprintf (file, " Copies propagated: %6ld\n", - opt_stats.num_copy_prop); - fprintf (file, "\nHash table statistics:\n"); fprintf (file, " avail_exprs: "); |