X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespill.c;h=3676e9196283c0503293d9ca3aa2ac1684b90187;hb=afbbc0b1ccd684c4c24bfd43d0f994123245f39f;hp=edebe354fb84064e250d7f357a1a83d552037b7a;hpb=44d51ff21a4a48494fd8e42dd10f5b489b4fca78;p=libfirm diff --git a/ir/be/bespill.c b/ir/be/bespill.c index edebe354f..3676e9196 100644 --- a/ir/be/bespill.c +++ b/ir/be/bespill.c @@ -155,7 +155,7 @@ spill_env_t *be_new_spill_env(be_irg_t *birg) { const arch_env_t *arch_env = birg->main_env->arch_env; - spill_env_t *env = xmalloc(sizeof(env[0])); + spill_env_t *env = XMALLOC(spill_env_t); env->spills = new_set(cmp_spillinfo, 1024); env->irg = be_get_birg_irg(birg); env->birg = birg; @@ -714,6 +714,7 @@ static ir_node *do_remat(spill_env_t *env, ir_node *spilled, ir_node *reloader) get_irn_op(spilled), get_irn_mode(spilled), get_irn_arity(spilled), ins); copy_node_attr(spilled, res); + arch_env_mark_remat(env->arch_env, res); new_backedge_info(res); DBG((dbg, LEVEL_1, "Insert remat %+F of %+F before reloader %+F\n", res, spilled, reloader));