summaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.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-dfa.c
parentbb5ecf29592e396bce6f8b793430d094d65c5309 (diff)
downloadgcc-a5c965c17ef36c215673c1b3bc01eff0780b3fcc.tar.gz
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-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)