X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespill.c;h=8719cb2c93de99d277fe213f776a4fe8f1d00d59;hb=ba873a5483697d4ff93e3980d7b6a1b5cbc491b5;hp=1cedc66c2b625f4fbbcb8d188d0df3dd1eec079d;hpb=4c66ebcce62ceffb68a891142dd309429e03351a;p=libfirm diff --git a/ir/be/bespill.c b/ir/be/bespill.c index 1cedc66c2..8719cb2c9 100644 --- a/ir/be/bespill.c +++ b/ir/be/bespill.c @@ -4,12 +4,16 @@ * Copyright: (c) Universitaet Karlsruhe * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "pset.h" #include "irnode_t.h" #include "ircons_t.h" #include "iredges_t.h" #include "debug.h" +#include "irgwalk.h" #include "besched.h" #include "bespill.h" @@ -99,7 +103,7 @@ static ir_node *be_spill_irn(spill_env_t *senv, ir_node *irn, ir_node *ctx_irn) ctx = be_get_spill_ctx(senv->spill_ctxs, irn, ctx_irn); if(!ctx->spill) { const be_main_env_t *env = senv->chordal_env->main_env; - ctx->spill = be_spill(env->node_factory, env->arch_env, irn); + ctx->spill = be_spill(env->node_factory, env->arch_env, irn, ctx_irn); } return ctx->spill; @@ -249,8 +253,6 @@ void be_add_reload(spill_env_t *senv, ir_node *to_spill, ir_node *before) { spill_info_t templ, *res; reloader_t *rel; -// assert(get_irn_opcode(to_spill) != iro_Unknown); - templ.spilled_node = to_spill; templ.reloaders = NULL; res = set_insert(senv->spills, &templ, sizeof(templ), HASH_PTR(to_spill));