From: Christoph Mallon Date: Thu, 21 Aug 2008 14:20:18 +0000 (+0000) Subject: Adjust the push-through-perm-frontier: It is the problematic node itself, not its... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5df24f1ce8edbb58a3d36ed0db03ce8dda9d1e45;p=libfirm Adjust the push-through-perm-frontier: It is the problematic node itself, not its successor. [r21321] --- diff --git a/ir/be/belower.c b/ir/be/belower.c index 587b51796..3b2b47ae7 100644 --- a/ir/be/belower.c +++ b/ir/be/belower.c @@ -921,9 +921,9 @@ static int push_through_perm(ir_node *perm, void *data) sched_foreach_reverse_from (sched_prev(perm), irn) { for (i = get_irn_arity(irn) - 1; i >= 0; --i) { ir_node *op = get_irn_n(irn, i); - if (arch_irn_consider_in_reg_alloc(aenv, cls, op) - && !values_interfere(env->birg, op, one_proj)) { - frontier = sched_next(irn); + if (arch_irn_consider_in_reg_alloc(aenv, cls, op) && + !values_interfere(env->birg, op, one_proj)) { + frontier = irn; goto found_front; } }