diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-13 19:39:02 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-13 19:39:02 +0000 |
commit | 30c4e60d04e71c3ee3f79fefca3c6bb1bd9bc303 (patch) | |
tree | 61a6187d6f263a1d8b55b7d4936e9fa41349fcbc /gcc/tree-ssa-copyrename.c | |
parent | ca8cd1439e712863aca83e77e54769644d8ebe17 (diff) | |
download | gcc-30c4e60d04e71c3ee3f79fefca3c6bb1bd9bc303.tar.gz |
* postreload-gcse.c (gcse_after_reload_main): Add calls to
statistics_counter_event.
* tree-ssa-copyrename.c (stats): Define.
(rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
statistics_counter_event.
* tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
(bswap_stats, widen_mul_stats): Define.
(insert_reciprocals): Increment rdivs_inserted.
(execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
rfuncs_inserted. Add calls to statistics_counter_event.
(execute_cse_sincos_1): Increment inserted.
(execute_cse_sincos): Zeroize sincos_stats. Add call to
statistics_counter_event.
(execute_optimize_bswap): Zeroize bswap_stats. Increment fields
of bswap_stats. Add calls to statistics_counter_event.
(convert_mult_to_widen): Increment widen_mults_inserted.
(convert_plusminus_to_widen): Increment maccs_inserted.
(convert_mult_to_fma): Increment fmas_inserted.
(execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
calls to statistics_counter_event.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-copyrename.c')
-rw-r--r-- | gcc/tree-ssa-copyrename.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/tree-ssa-copyrename.c b/gcc/tree-ssa-copyrename.c index dfc0b4edbbe..ae4fb5fba39 100644 --- a/gcc/tree-ssa-copyrename.c +++ b/gcc/tree-ssa-copyrename.c @@ -40,6 +40,12 @@ along with GCC; see the file COPYING3. If not see #include "tree-pass.h" #include "langhooks.h" +static struct +{ + /* Number of copies coalesced. */ + int coalesced; +} stats; + /* The following routines implement the SSA copy renaming phase. This optimization looks for copies between 2 SSA_NAMES, either through a @@ -360,9 +366,12 @@ rename_ssa_copies (void) fprintf (debug, "\n"); } } + stats.coalesced++; replace_ssa_name_symbol (var, SSA_NAME_VAR (part_var)); } + statistics_counter_event (cfun, "copies coalesced", + stats.coalesced); delete_var_map (map); return updated ? TODO_remove_unused_locals : 0; } |