Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
83333040
Commit
83333040
authored
Aug 14, 2009
by
Matthias Braun
Browse files
benewalloc: fix live-in values without phis not getting set to their copies
[r26342]
parent
9cfac310
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/benewalloc.c
View file @
83333040
...
...
@@ -1167,8 +1167,8 @@ static void allocate_coalesce_block(ir_node *block, void *data)
if
(
!
pred_info
->
processed
)
{
/* use node for now, it will get fixed later */
phi_ins
[
p
]
=
node
;
need_phi
=
true
;
phi_ins
[
p
]
=
node
;
need_phi
=
true
;
}
else
{
int
a
=
find_value_in_block_info
(
pred_info
,
node
);
...
...
@@ -1197,6 +1197,9 @@ static void allocate_coalesce_block(ir_node *block, void *data)
node
=
phi
;
}
else
{
allocation_info_t
*
info
=
get_allocation_info
(
node
);
info
->
current_value
=
phi_ins
[
0
];
/* Grab 1 of the inputs we constructed (might not be the same as
* "node" as we could see the same copy of the value in all
* predecessors */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment