From: Christian Würdig Date: Wed, 13 Dec 2006 14:59:13 +0000 (+0000) Subject: removed assertion (spill value can have another class than reload) X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=7dce86f2946c491b207ab185d835e8e33d5afb2e;p=libfirm removed assertion (spill value can have another class than reload) added some spaces --- diff --git a/ir/be/bespillslots.c b/ir/be/bespillslots.c index be21894db..486a88b7c 100644 --- a/ir/be/bespillslots.c +++ b/ir/be/bespillslots.c @@ -187,27 +187,27 @@ static spill_t *collect_memphi(ss_env_t *env, ir_node *node) { * and memphis attached to them. */ static void collect_spills_walker(ir_node *node, void *data) { - ss_env_t *env = data; + ss_env_t *env = data; const arch_env_t *arch_env = env->arch_env; - // classify returns classification of the irn the proj is attached to - if(is_Proj(node)) + /* classify returns classification of the irn the proj is attached to */ + if (is_Proj(node)) return; - if(arch_irn_class_is(arch_env, node, reload)) { + if (arch_irn_class_is(arch_env, node, reload)) { ir_node *spillnode = get_memory_edge(node); spill_t *spill; assert(spillnode != NULL); - if(is_Phi(spillnode)) { + if (is_Phi(spillnode)) { spill = collect_memphi(env, spillnode); - } else { + } + else { spill = collect_spill(env, spillnode); } - assert(!be_is_Reload(node) || spill->cls == arch_get_irn_reg_class(arch_env, node, -1)); - ARR_APP1(ir_node*, env->reloads, node); + ARR_APP1(ir_node *, env->reloads, node); } }