-
-#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
- */
-void be_get_iterated_dominance_frontiers(const be_dom_front_info_t *domfronts,
- ir_nodeset_t *blocks)
-{
- ir_node *block;
- ir_nodeset_iterator_t iter;
- waitq *worklist = new_waitq();
-
- foreach_ir_nodeset(blocks, block, iter) {
- waitq_put(worklist, block);
- }
-
- while(! waitq_empty(worklist)) {
- int i;
- ir_node *block = waitq_get(worklist);
- ir_node **domfront = be_get_dominance_frontier(domfronts, block);
- int domfront_len = ARR_LEN(domfront);
-
- for (i = 0; i < domfront_len; ++i) {
- ir_node *y = domfront[i];
- if (ir_nodeset_insert(blocks, y))
- waitq_put(worklist, y);
- }
- }
-
- del_waitq(worklist);
-}
-#endif