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
b1270e2d
Commit
b1270e2d
authored
Aug 04, 2006
by
Matthias Braun
Browse files
place duplicates after perm
parent
f9aa77e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bessadestr.c
View file @
b1270e2d
...
@@ -291,8 +291,8 @@ static void set_regs_or_place_dupls_walker(ir_node *bl, void *data) {
...
@@ -291,8 +291,8 @@ static void set_regs_or_place_dupls_walker(ir_node *bl, void *data) {
pin it
pin it
*/
*/
ir_node
*
perm
=
get_Proj_pred
(
arg
);
ir_node
*
perm
=
get_Proj_pred
(
arg
);
ir_node
*
orig_val
=
get_irn_n
(
perm
,
get_Proj_proj
(
arg
)
)
;
ir_node
*
dupl
=
be_new_Copy
(
cls
,
chordal_env
->
irg
,
arg_block
,
arg
);
ir_node
*
dupl
=
be_new_Copy
(
cls
,
chordal_env
->
irg
,
arg_block
,
orig_val
)
;
ir_node
*
ins
;
/* this is commented out because it will fail in case of unknown float */
/* this is commented out because it will fail in case of unknown float */
#if 0
#if 0
...
@@ -310,7 +310,9 @@ static void set_regs_or_place_dupls_walker(ir_node *bl, void *data) {
...
@@ -310,7 +310,9 @@ static void set_regs_or_place_dupls_walker(ir_node *bl, void *data) {
set_irn_n
(
phi
,
i
,
dupl
);
set_irn_n
(
phi
,
i
,
dupl
);
set_reg
(
dupl
,
phi_reg
);
set_reg
(
dupl
,
phi_reg
);
sched_add_before
(
perm
,
dupl
);
/* skip the Perm's Projs and insert the copies behind. */
for
(
ins
=
sched_next
(
perm
);
is_Proj
(
ins
);
ins
=
sched_next
(
ins
));
sched_add_before
(
ins
,
dupl
);
pin_irn
(
dupl
,
phi_block
);
pin_irn
(
dupl
,
phi_block
);
DBG
((
dbg
,
LEVEL_1
,
" arg is pinned: insert %+F(%s)
\n
"
,
dupl
,
get_reg
(
dupl
)
->
name
));
DBG
((
dbg
,
LEVEL_1
,
" arg is pinned: insert %+F(%s)
\n
"
,
dupl
,
get_reg
(
dupl
)
->
name
));
}
else
{
}
else
{
...
...
Write
Preview
Supports
Markdown
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