X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbelive.c;h=a2e400ee6ae787bd775abed71355cbf25b3000f7;hb=0cf1285126c03f408d0e6567547ce98864fd6e30;hp=a2166db0c5dc2424755a15d34193756a85892932;hpb=57fb9fc8605ae538d91ca191301e0d3c111cc3ba;p=libfirm diff --git a/ir/be/belive.c b/ir/be/belive.c index a2166db0c..a2e400ee6 100644 --- a/ir/be/belive.c +++ b/ir/be/belive.c @@ -599,15 +599,14 @@ be_lv_t *be_liveness(const be_irg_t *birg) void be_liveness_recompute(be_lv_t *lv) { - BE_TIMER_PUSH(t_live); + unsigned last_idx; - unsigned last_idx = get_irg_last_idx(lv->irg); + BE_TIMER_PUSH(t_live); + last_idx = get_irg_last_idx(lv->irg); if(last_idx >= bitset_size(lv->nodes)) { bitset_free(lv->nodes); lv->nodes = bitset_malloc(last_idx * 2); - } - - else + } else bitset_clear_all(lv->nodes); phase_free(&lv->ph);