benewalloc: fix unknowns being used at phi inputs
authorMatthias Braun <matze@braunis.de>
Mon, 17 Aug 2009 08:17:54 +0000 (08:17 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 17 Aug 2009 08:17:54 +0000 (08:17 +0000)
[r26370]

ir/be/benewalloc.c

index 1fe00e7..d90b47f 100644 (file)
@@ -1044,6 +1044,9 @@ static void add_phi_permutations(ir_node *block, int p)
                        continue;
 
                op = get_Phi_pred(node, p);
+               if (!arch_irn_consider_in_reg_alloc(cls, op))
+                       continue;
+
                a  = find_value_in_block_info(pred_info, op);
                assert(a >= 0);