aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dse.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2004-09-14 22:12:18 -0600
committerJeff Law <law@gcc.gnu.org>2004-09-14 22:12:18 -0600
commita5c965c17ef36c215673c1b3bc01eff0780b3fcc (patch)
treecf5b9beec3f25e2e51b674da28677528ab57f45a /gcc/tree-ssa-dse.c
parentbb5ecf29592e396bce6f8b793430d094d65c5309 (diff)
downloadgcc-a5c965c17ef36c215673c1b3bc01eff0780b3fcc.zip
gcc-a5c965c17ef36c215673c1b3bc01eff0780b3fcc.tar.gz
gcc-a5c965c17ef36c215673c1b3bc01eff0780b3fcc.tar.bz2
tree-dfa.c (free_df_for_stmt): No longer static.
* tree-dfa.c (free_df_for_stmt): No longer static. (free_df): Update comments. * tree-flow.h (free_df_for_stmt): Prototype. * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also call release_defs. From-SVN: r87531
Diffstat (limited to 'gcc/tree-ssa-dse.c')
-rw-r--r--gcc/tree-ssa-dse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c
index 4cc136b..23487f2 100644
--- a/gcc/tree-ssa-dse.c
+++ b/gcc/tree-ssa-dse.c
@@ -326,6 +326,14 @@ dse_optimize_stmt (struct dom_walk_data *walk_data,
This allows us to cascade dead stores. */
redirect_immediate_uses (stmt, skipped_phi ? skipped_phi : use);
+ /* Be sure to remove any dataflow information attached to
+ this statement. */
+ free_df_for_stmt (stmt);
+
+ /* And release any SSA_NAMEs set in this statement back to the
+ SSA_NAME manager. */
+ release_defs (stmt);
+
/* Finally remove the dead store. */
bsi_remove (&bsi);
}