diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-12 14:38:41 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-12 14:38:41 +0000 |
commit | 8bab8c204a80c9d915d2b1a4442467b10eff083d (patch) | |
tree | 60877afac271d672ebff833632a3a61258d4bff1 /gcc/tree-ssa-copyrename.c | |
parent | 84d2e8ac9069321df689c75f3a27bd0219ccc6cf (diff) | |
download | gcc-8bab8c204a80c9d915d2b1a4442467b10eff083d.tar.gz |
2011-07-12 Richard Guenther <rguenther@suse.de>
* tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
Do not perform no-op changes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176206 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-copyrename.c')
-rw-r--r-- | gcc/tree-ssa-copyrename.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/tree-ssa-copyrename.c b/gcc/tree-ssa-copyrename.c index 88a156bab76..3e01b6efab9 100644 --- a/gcc/tree-ssa-copyrename.c +++ b/gcc/tree-ssa-copyrename.c @@ -296,6 +296,8 @@ rename_ssa_copies (void) FILE *debug; bool updated = false; + memset (&stats, 0, sizeof (stats)); + if (dump_file && (dump_flags & TDF_DETAILS)) debug = dump_file; else @@ -355,16 +357,15 @@ rename_ssa_copies (void) if (!part_var) continue; var = ssa_name (x); + if (SSA_NAME_VAR (var) == SSA_NAME_VAR (part_var)) + continue; if (debug) { - if (SSA_NAME_VAR (var) != SSA_NAME_VAR (part_var)) - { - fprintf (debug, "Coalesced "); - print_generic_expr (debug, var, TDF_SLIM); - fprintf (debug, " to "); - print_generic_expr (debug, part_var, TDF_SLIM); - fprintf (debug, "\n"); - } + fprintf (debug, "Coalesced "); + print_generic_expr (debug, var, TDF_SLIM); + fprintf (debug, " to "); + print_generic_expr (debug, part_var, TDF_SLIM); + fprintf (debug, "\n"); } stats.coalesced++; replace_ssa_name_symbol (var, SSA_NAME_VAR (part_var)); |