X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Firlivechk.c;h=f3d436f2e7bc9b4af1a66f43e9030d964a4b3893;hb=6b1241844320899c9c3f175a81a274fcbdd5be27;hp=bbe8cbbc096823aaca07320d621dbe10ff6ab840;hpb=bb9f2e36362333c6635b89f5258171b06c786608;p=libfirm diff --git a/ir/ana/irlivechk.c b/ir/ana/irlivechk.c index bbe8cbbc0..f3d436f2e 100644 --- a/ir/ana/irlivechk.c +++ b/ir/ana/irlivechk.c @@ -22,7 +22,7 @@ * @date 21.04.2007 * @author Sebastian Hack * @version $Id$ - * @summary + * @brief * * Liveness checks as developed by Benoit Boissinot, Fabrice Rastello and myself. * @@ -260,8 +260,7 @@ lv_chk_t *lv_chk_new(ir_graph *irg, const dfs_t *dfs) res->n_blocks = dfs_get_n_nodes(res->dfs); res->back_edge_src = bitset_obstack_alloc(obst, res->n_blocks); res->back_edge_tgt = bitset_obstack_alloc(obst, res->n_blocks); - res->map = obstack_alloc(obst, res->n_blocks * sizeof(res->map[0])); - memset(res->map, 0, res->n_blocks * sizeof(res->map[0])); + res->map = OALLOCNZ(obst, bl_info_t*, res->n_blocks); #if 0 { @@ -642,7 +641,7 @@ unsigned lv_chk_bl_xxx(const lv_chk_t *lv, const ir_node *bl, const ir_node *var * will be left. */ DBG((lv->dbg, LEVEL_2, "\tbe tgt reach: %B, dom span: [%d, %d]\n", Tq, min_dom, max_dom)); i = bitset_next_set(Tq, min_dom); - while(i <= max_dom) { + while (i <= max_dom) { bl_info_t *ti = lv->map[i]; int use_in_current_block = bitset_is_set(uses, ti->id);