summaryrefslogtreecommitdiff
path: root/gcc/et-forest.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-25 18:41:28 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-25 18:41:28 +0000
commit108beec73e6f9087513651b6d42aa253398d7ba0 (patch)
tree36dc2c60cc0910678a8a57037651dc2c5999e4b5 /gcc/et-forest.c
parent71cb16ef92c5f229751e3bcfc17c1a19c051b425 (diff)
downloadgcc-108beec73e6f9087513651b6d42aa253398d7ba0.tar.gz
* dominance.c (free_dominance_info): Speed up by freeing et
data structures without maintaining other nodes. * et-forest.c (et_free_tree_force): New. * et-forest.h: Add a prototype for et_free_tree_force. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97054 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/et-forest.c')
-rw-r--r--gcc/et-forest.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/et-forest.c b/gcc/et-forest.c
index 7fbbb77312c..df7c22aff40 100644
--- a/gcc/et-forest.c
+++ b/gcc/et-forest.c
@@ -499,6 +499,15 @@ et_free_tree (struct et_node *t)
pool_free (et_nodes, t);
}
+/* Releases et tree T without maintaining other nodes. */
+
+void
+et_free_tree_force (struct et_node *t)
+{
+ pool_free (et_occurrences, t->rightmost_occ);
+ pool_free (et_nodes, t);
+}
+
/* Sets father of et tree T to FATHER. */
void