* 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"
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;
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));