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
21a385ac
Commit
21a385ac
authored
Aug 09, 2006
by
Matthias Braun
Browse files
- place memperms in the predblocks of the memphi, not in the blocks of the phi argument
parent
4c26efa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bespillslots.c
View file @
21a385ac
...
...
@@ -585,12 +585,14 @@ static void assign_spillslots(ss_env_t *env) {
be_set_frame_entity
(
node
,
slot
->
entity
);
}
else
{
int
i
,
arity
;
ir_node
*
block
=
get_nodes_block
(
node
);
// should be a PhiM
assert
(
is_Phi
(
node
));
for
(
i
=
0
,
arity
=
get_irn_arity
(
node
);
i
<
arity
;
++
i
)
{
ir_node
*
arg
=
get_irn_n
(
node
,
i
);
ir_node
*
predblock
=
get_Block_cfgpred_block
(
block
,
i
);
spill_t
*
argspill
;
int
argslotid
;
...
...
@@ -606,7 +608,7 @@ static void assign_spillslots(ss_env_t *env) {
create_stack_entity
(
env
,
argslot
);
}
memperm
=
get_memperm
(
env
,
get_nodes_block
(
arg
)
);
memperm
=
get_memperm
(
env
,
predblock
);
entry
=
obstack_alloc
(
&
env
->
obst
,
sizeof
(
entry
[
0
]));
entry
->
node
=
node
;
...
...
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