benewalloc: more special casing of unknowns as phi-inputs needed
authorMatthias Braun <matze@braunis.de>
Mon, 17 Aug 2009 08:23:02 +0000 (08:23 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 17 Aug 2009 08:23:02 +0000 (08:23 +0000)
[r26371]

ir/be/benewalloc.c

index d90b47f..c0052d0 100644 (file)
@@ -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 */