From 55974aed6d89c9aadae4a58eaf93240c6ed679d4 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 7 Dec 2012 08:38:55 +0100 Subject: [PATCH] bechordal: Do not re-fetch a value, which we already have. --- ir/be/bechordal_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.20.1