From: Matthias Braun Date: Wed, 9 Nov 2011 18:21:28 +0000 (+0100) Subject: heights: use fast access functions for _reachable X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=1475afffa654e08ed191b07e7485df3a3616f56d;p=libfirm heights: use fast access functions for _reachable --- diff --git a/ir/ana/heights.c b/ir/ana/heights.c index 3e8423950..db2a818fe 100644 --- a/ir/ana/heights.c +++ b/ir/ana/heights.c @@ -100,12 +100,12 @@ static bool search(ir_heights_t *h, const ir_node *curr, const ir_node *tgt) return false; /* Check, if we have already been here. Coming more often won't help :-) */ - h_curr = get_height_data(h, curr); + h_curr = maybe_get_height_data(h, curr); if (h_curr->visited >= h->visited) return false; /* If we are too deep into the DAG we won't find the target either. */ - h_tgt = get_height_data(h, tgt); + h_tgt = maybe_get_height_data(h, tgt); if (h_curr->height > h_tgt->height) return false; @@ -130,8 +130,8 @@ int heights_reachable_in_block(ir_heights_t *h, const ir_node *n, const ir_node *m) { int res = 0; - irn_height_t *hn = get_height_data(h, n); - irn_height_t *hm = get_height_data(h, m); + irn_height_t *hn = maybe_get_height_data(h, n); + irn_height_t *hm = maybe_get_height_data(h, m); assert(get_nodes_block(n) == get_nodes_block(m)); assert(hn != NULL && hm != NULL);