Commit 0455e974 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Reduce code dupliaction a bit.

parent b8290c9f
...@@ -488,8 +488,8 @@ static void determine_spill_costs(spill_env_t *env, spill_info_t *spillinfo) ...@@ -488,8 +488,8 @@ static void determine_spill_costs(spill_env_t *env, spill_info_t *spillinfo)
if (spillinfo->spill_costs >= 0) if (spillinfo->spill_costs >= 0)
return; return;
ir_node *to_spill = spillinfo->to_spill; ir_node *const to_spill = spillinfo->to_spill;
const ir_node *insn = skip_Proj_const(to_spill); ir_node *const insn = skip_Proj(to_spill);
assert(!arch_irn_is(insn, dont_spill)); assert(!arch_irn_is(insn, dont_spill));
assert(!arch_irn_is(insn, reload)); assert(!arch_irn_is(insn, reload));
...@@ -526,7 +526,7 @@ static void determine_spill_costs(spill_env_t *env, spill_info_t *spillinfo) ...@@ -526,7 +526,7 @@ static void determine_spill_costs(spill_env_t *env, spill_info_t *spillinfo)
/* override spillinfos or create a new one */ /* override spillinfos or create a new one */
spill_t *spill = OALLOC(&env->obst, spill_t); spill_t *spill = OALLOC(&env->obst, spill_t);
spill->after = be_move_after_schedule_first(skip_Proj(to_spill)); spill->after = be_move_after_schedule_first(insn);
spill->next = NULL; spill->next = NULL;
spill->spill = NULL; spill->spill = NULL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment