projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7404ad
)
benewalloc: more special casing of unknowns as phi-inputs needed
author
Matthias Braun
<matze@braunis.de>
Mon, 17 Aug 2009 08:23:02 +0000
(08:23 +0000)
committer
Matthias Braun
<matze@braunis.de>
Mon, 17 Aug 2009 08:23:02 +0000
(08:23 +0000)
[r26371]
ir/be/benewalloc.c
patch
|
blob
|
history
diff --git
a/ir/be/benewalloc.c
b/ir/be/benewalloc.c
index
d90b47f
..
c0052d0
100644
(file)
--- 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 */