- belady_env_t *bel = alloca(sizeof(*bel));
- obstack_init(&bel->ob);
- bel->factory = session->main_env->node_factory;
- bel->arch = session->main_env->arch_env;
- bel->cls = cls;
- bel->n_regs = arch_register_class_n_regs(cls);
- bel->ws = new_workset(&bel->ob, bel);
- bel->uses = be_begin_uses(session->irg, session->main_env->arch_env, cls);
- bel->senv = be_new_spill_env(dbg, session, cls, is_mem_phi, NULL);
- bel->reloads = pset_new_ptr_default();
+ obstack_init(&bel.ob);
+ bel.factory = chordal_env->main_env->node_factory;
+ bel.arch = chordal_env->main_env->arch_env;
+ bel.cls = chordal_env->cls;
+ bel.n_regs = arch_register_class_n_regs(bel.cls);
+ bel.ws = new_workset(&bel.ob, &bel);
+ bel.uses = be_begin_uses(chordal_env->irg, chordal_env->main_env->arch_env, bel.cls);
+ bel.senv = be_new_spill_env(dbg, chordal_env, is_mem_phi, NULL);
+ bel.reloads = pset_new_ptr_default();