added assert (node to spill must be scheduled)
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 14 Feb 2007 18:01:17 +0000 (18:01 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 14 Feb 2007 18:01:17 +0000 (18:01 +0000)
ir/be/bespill.c

index a4d1892..ac99880 100644 (file)
@@ -432,6 +432,7 @@ static void spill_node(spill_env_t *env, spill_info_t *spillinfo) {
                return;
 
        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 {