summaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-15 04:12:18 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-15 04:12:18 +0000
commit4e4a0d35e1f59639aee93b6a26e9bd8ea4dca2be (patch)
treecf5b9beec3f25e2e51b674da28677528ab57f45a /gcc/tree-dfa.c
parent1eff44ec84d9f93fa10713ebd0177d46e1747c1a (diff)
downloadgcc-4e4a0d35e1f59639aee93b6a26e9bd8ea4dca2be.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87531 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r--gcc/tree-dfa.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index 533b98884e6..3d7e4d4b4d6 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -188,9 +188,9 @@ compute_immediate_uses (int flags, bool (*calc_for)(tree))
}
-/* Invalidates dataflow information for a statement STMT. */
+/* Invalidates dataflow information for a statement STMT. */
-static void
+void
free_df_for_stmt (tree stmt)
{
dataflow_t *df;
@@ -221,7 +221,13 @@ free_df_for_stmt (tree stmt)
}
-/* Invalidate dataflow information for the whole function. */
+/* Invalidate dataflow information for the whole function.
+
+ Note this only invalidates dataflow information on statements and
+ PHI nodes which are reachable.
+
+ A deleted statement may still have attached dataflow information
+ on it. */
void
free_df (void)