X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fbe%2Fbedomfront.c;h=2e8ed01ee92bef4fee5ab054a556dc2050eb5ea3;hb=fa58db3dfe73586f59ba99952806e418849c9740;hp=65886a95a3682cc76e6c3929a301d16b7871374f;hpb=9fdaf3417cec46e420650629406f492af15b071b;p=libfirm diff --git a/ir/be/bedomfront.c b/ir/be/bedomfront.c index 65886a95a..2e8ed01ee 100644 --- a/ir/be/bedomfront.c +++ b/ir/be/bedomfront.c @@ -115,7 +115,7 @@ ir_node **compute_df(ir_node *blk, be_dom_front_info_t *info) be_dom_front_info_t *be_compute_dominance_frontiers(ir_graph *irg) { - be_dom_front_info_t *info = xmalloc(sizeof(*info)); + be_dom_front_info_t *info = XMALLOC(be_dom_front_info_t); edges_assure(irg); obstack_init(&info->obst); @@ -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 @@ -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