From 252f817722da0dbccd4ae4673b424d609a74c799 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 31 Oct 2012 14:29:33 +0100 Subject: [PATCH] Simplify test when to stop in push_through_perm(). --- ir/be/belower.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ir/be/belower.c b/ir/be/belower.c index 4d934ac4d..29ee42754 100644 --- a/ir/be/belower.c +++ b/ir/be/belower.c @@ -885,7 +885,7 @@ found_front: n_moved = 0; for (;;) { ir_node *const node = sched_prev(perm); - if (sched_is_begin(node)) + if (node == frontier) break; const arch_register_req_t *req; @@ -906,8 +906,6 @@ found_front: /* it wasn't an input to the perm, we can't do anything more */ if (input < 0) break; - if (!sched_comes_after(frontier, node)) - break; if (arch_irn_is(node, modify_flags)) break; req = arch_get_irn_register_req(node); -- 2.20.1