From 8800cffaa6b27b5d4c0f4ca9f962266ebfbb302f Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 17 Aug 2009 08:23:02 +0000 Subject: [PATCH] benewalloc: more special casing of unknowns as phi-inputs needed [r26371] --- ir/be/benewalloc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ir/be/benewalloc.c b/ir/be/benewalloc.c index d90b47fee..c0052d0aa 100644 --- a/ir/be/benewalloc.c +++ b/ir/be/benewalloc.c @@ -1076,6 +1076,11 @@ static void add_phi_permutations(ir_node *block, int p) if (!arch_irn_consider_in_reg_alloc(cls, node)) continue; + op = get_Phi_pred(node, p); + /* no need to do anything for Unknown inputs */ + if (!arch_irn_consider_in_reg_alloc(cls, op)) + continue; + /* we have permutated all values into the correct registers so we can simply query which value occupies the phis register in the predecessor */ -- 2.20.1