Commit fc80130e authored by Christian Würdig's avatar Christian Würdig
Browse files

added assert (node to spill must be scheduled)

parent 38ce69bb
......@@ -432,6 +432,7 @@ static void spill_node(spill_env_t *env, spill_info_t *spillinfo) {
to_spill = spillinfo->spilled_node;
assert(sched_is_scheduled(to_spill) && "Node to be spilled must be scheduled!");
if (is_Phi(to_spill) && pset_find_ptr(env->mem_phis, spillinfo->spilled_node)) {
spill_phi(env, spillinfo);
} else {
Markdown is supported
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