X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbedomfront.c;h=79aad6e05a622c330934722bd5d745f710f2a225;hb=8974b94349462d835b33ad4f896d1821986458bd;hp=ddd3e1aa7c293d9871cfa823812ecdb78e5bc002;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/be/bedomfront.c b/ir/be/bedomfront.c index ddd3e1aa7..79aad6e05 100644 --- a/ir/be/bedomfront.c +++ b/ir/be/bedomfront.c @@ -140,6 +140,7 @@ ir_node **be_get_dominance_frontier(const be_dom_front_info_t *info, return pmap_get(info->df_map, block); } +#if 0 /** * Calculates the iterated dominance frontier of a set of blocks. * Also clears the link field of the returned blocks as a side effect @@ -155,7 +156,7 @@ void be_get_iterated_dominance_frontiers(const be_dom_front_info_t *domfronts, waitq_put(worklist, block); } - while(! pdeq_empty(worklist)) { + while(! waitq_empty(worklist)) { int i; ir_node *block = waitq_get(worklist); ir_node **domfront = be_get_dominance_frontier(domfronts, block); @@ -163,12 +164,11 @@ void be_get_iterated_dominance_frontiers(const be_dom_front_info_t *domfronts, for (i = 0; i < domfront_len; ++i) { ir_node *y = domfront[i]; - if(!ir_nodeset_insert(blocks, y)) - continue; - - waitq_put(worklist, y); + if (ir_nodeset_insert(blocks, y)) + waitq_put(worklist, y); } } del_waitq(worklist); } +#endif