diff options
author | Richard Guenther <rguenther@suse.de> | 2011-07-12 14:38:41 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-07-12 14:38:41 +0000 |
commit | b7a83ad8eb8282676f1431f288718d08253a2739 (patch) | |
tree | 60877afac271d672ebff833632a3a61258d4bff1 | |
parent | 261ceb73df1deb56f05ce4454356d470ee9beca0 (diff) | |
download | gcc-b7a83ad8eb8282676f1431f288718d08253a2739.zip gcc-b7a83ad8eb8282676f1431f288718d08253a2739.tar.gz gcc-b7a83ad8eb8282676f1431f288718d08253a2739.tar.bz2 |
tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
2011-07-12 Richard Guenther <rguenther@suse.de>
* tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
Do not perform no-op changes.
From-SVN: r176206
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-copyrename.c | 17 |
2 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 792508d..d519a80 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-12 Richard Guenther <rguenther@suse.de> + + * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics. + Do not perform no-op changes. + 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org> * config/arm/predicates.md (neon_struct_operand): Make a normal diff --git a/gcc/tree-ssa-copyrename.c b/gcc/tree-ssa-copyrename.c index 88a156b..3e01b6e 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)); |