aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssanames.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-09-22 12:15:56 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-09-22 12:15:56 +0000
commit736fe2d54b355d5d43b3d26b1d40b110a0697b28 (patch)
tree8d4fae775644247a59913ff0ac0e900b30768e6c /gcc/tree-ssanames.c
parentbafa9791ac3a741aae72a6efd998b7d36d2c2e62 (diff)
downloadgcc-736fe2d54b355d5d43b3d26b1d40b110a0697b28.zip
gcc-736fe2d54b355d5d43b3d26b1d40b110a0697b28.tar.gz
gcc-736fe2d54b355d5d43b3d26b1d40b110a0697b28.tar.bz2
tree-ssanames.c (release_dead_ssa_names): Do not remove callee edges here.
2010-09-22 Richard Guenther <rguenther@suse.de> * tree-ssanames.c (release_dead_ssa_names): Do not remove callee edges here. * passes.c (init_optimization_passes): Remove early CFG cleanup. * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove. (pass_cleanup_cfg): Likewise. (execute_fixup_cfg): Cleanup. * tree-pass.h (pass_cleanup_cfg): Remove. From-SVN: r164522
Diffstat (limited to 'gcc/tree-ssanames.c')
-rw-r--r--gcc/tree-ssanames.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c
index 0d63fe9f..c005aba 100644
--- a/gcc/tree-ssanames.c
+++ b/gcc/tree-ssanames.c
@@ -338,8 +338,8 @@ release_dead_ssa_names (void)
int n = 0;
referenced_var_iterator rvi;
- /* Current defs point to various dead SSA names that in turn points to dead
- statements so bunch of dead memory is held from releasing. */
+ /* Current defs point to various dead SSA names that in turn point to
+ eventually dead variables so a bunch of memory is held live. */
FOR_EACH_REFERENCED_VAR (t, rvi)
set_current_def (t, NULL);
/* Now release the freelist. */
@@ -356,12 +356,10 @@ release_dead_ssa_names (void)
}
FREE_SSANAMES (cfun) = NULL;
- /* Cgraph edges has been invalidated and point to dead statement. We need to
- remove them now and will rebuild it before next IPA pass. */
- cgraph_node_remove_callees (cgraph_node (current_function_decl));
-
+ statistics_counter_event (cfun, "SSA names released", n);
if (dump_file)
- fprintf (dump_file, "Released %i names, %.2f%%\n", n, n * 100.0 / num_ssa_names);
+ fprintf (dump_file, "Released %i names, %.2f%%\n",
+ n, n * 100.0 / num_ssa_names);
return 0;
}