Commit ea674f09 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

bespillutil: Remove unnecessary case.

The reloader never is a block.
parent a083a3a0
......@@ -599,15 +599,8 @@ static ir_node *do_remat(spill_env_t *env, ir_node *spilled, ir_node *reloader)
{
int i, arity;
ir_node *res;
ir_node *bl;
ir_node **ins;
if (is_Block(reloader)) {
bl = reloader;
} else {
bl = get_nodes_block(reloader);
}
ins = ALLOCAN(ir_node*, get_irn_arity(spilled));
for (i = 0, arity = get_irn_arity(spilled); i < arity; ++i) {
ir_node *arg = get_irn_n(spilled, i);
......@@ -622,6 +615,7 @@ static ir_node *do_remat(spill_env_t *env, ir_node *spilled, ir_node *reloader)
}
/* create a copy of the node */
ir_node *const bl = get_nodes_block(reloader);
res = new_ir_node(get_irn_dbg_info(spilled), env->irg, bl,
get_irn_op(spilled), get_irn_mode(spilled),
get_irn_arity(spilled), ins);
......
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