aboutsummaryrefslogtreecommitdiff
path: root/gcc/dominance.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-03-25 18:41:28 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-03-25 18:41:28 +0000
commitbef87a346c2ebf741fa60ca0c80f8f559551e6e6 (patch)
tree36dc2c60cc0910678a8a57037651dc2c5999e4b5 /gcc/dominance.c
parentccb527e4b7a69db20ae01dbd4bfe7b79d8ace6ec (diff)
downloadgcc-bef87a346c2ebf741fa60ca0c80f8f559551e6e6.zip
gcc-bef87a346c2ebf741fa60ca0c80f8f559551e6e6.tar.gz
gcc-bef87a346c2ebf741fa60ca0c80f8f559551e6e6.tar.bz2
dominance.c (free_dominance_info): Speed up by freeing et data structures without maintaining other nodes.
* 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. From-SVN: r97054
Diffstat (limited to 'gcc/dominance.c')
-rw-r--r--gcc/dominance.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dominance.c b/gcc/dominance.c
index f001c68..d48701d 100644
--- a/gcc/dominance.c
+++ b/gcc/dominance.c
@@ -659,11 +659,11 @@ free_dominance_info (enum cdi_direction dir)
FOR_ALL_BB (bb)
{
- delete_from_dominance_info (dir, bb);
+ et_free_tree_force (bb->dom[dir]);
+ bb->dom[dir] = NULL;
}
- /* If there are any nodes left, something is wrong. */
- gcc_assert (!n_bbs_in_dom_tree[dir]);
+ n_bbs_in_dom_tree[dir] = 0;
dom_computed[dir] = DOM_NONE;
}