From: Christoph Mallon Date: Fri, 7 Dec 2012 07:38:55 +0000 (+0100) Subject: bechordal: Do not re-fetch a value, which we already have. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=55974aed6d89c9aadae4a58eaf93240c6ed679d4;p=libfirm bechordal: Do not re-fetch a value, which we already have. --- diff --git a/ir/be/bechordal_main.c b/ir/be/bechordal_main.c index 67f9eaede..18e930e2c 100644 --- a/ir/be/bechordal_main.c +++ b/ir/be/bechordal_main.c @@ -229,7 +229,7 @@ static void pre_spill(be_chordal_env_t *const chordal_env, arch_register_class_t { chordal_env->cls = cls; chordal_env->border_heads = pmap_create(); - chordal_env->allocatable_regs = bitset_malloc(chordal_env->cls->n_regs); + chordal_env->allocatable_regs = bitset_malloc(cls->n_regs); be_assure_live_chk(irg); @@ -237,7 +237,7 @@ static void pre_spill(be_chordal_env_t *const chordal_env, arch_register_class_t be_put_allocatable_regs(irg, cls, chordal_env->allocatable_regs); be_timer_push(T_RA_CONSTR); - be_pre_spill_prepare_constr(irg, chordal_env->cls); + be_pre_spill_prepare_constr(irg, cls); be_timer_pop(T_RA_CONSTR); dump(BE_CH_DUMP_CONSTR, irg, cls, "constr-pre");