From 5df24f1ce8edbb58a3d36ed0db03ce8dda9d1e45 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 21 Aug 2008 14:20:18 +0000 Subject: [PATCH] Adjust the push-through-perm-frontier: It is the problematic node itself, not its successor. [r21321] --- ir/be/belower.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } } -- 2.20.1