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

removed assertion (spill value can have another class than reload)

added some spaces
parent aa6e37f8
...@@ -187,27 +187,27 @@ static spill_t *collect_memphi(ss_env_t *env, ir_node *node) { ...@@ -187,27 +187,27 @@ static spill_t *collect_memphi(ss_env_t *env, ir_node *node) {
* and memphis attached to them. * and memphis attached to them.
*/ */
static void collect_spills_walker(ir_node *node, void *data) { 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; const arch_env_t *arch_env = env->arch_env;
// classify returns classification of the irn the proj is attached to /* classify returns classification of the irn the proj is attached to */
if(is_Proj(node)) if (is_Proj(node))
return; 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); ir_node *spillnode = get_memory_edge(node);
spill_t *spill; spill_t *spill;
assert(spillnode != NULL); assert(spillnode != NULL);
if(is_Phi(spillnode)) { if (is_Phi(spillnode)) {
spill = collect_memphi(env, spillnode); spill = collect_memphi(env, spillnode);
} else { }
else {
spill = collect_spill(env, spillnode); 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);
} }
} }
......
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