Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
1ef1aa93
Commit
1ef1aa93
authored
Oct 16, 2014
by
Christoph Mallon
Browse files
lower_dw: Do not just move a node itself to the new block, but all its Projs, too.
parent
6dbd58d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/lower/lower_dw.c
View file @
1ef1aa93
...
...
@@ -745,9 +745,8 @@ ir_node *part_block_dw(ir_node *node)
/* move Phi nodes and constants to new_block */
foreach_out_edge_safe
(
old_block
,
edge
)
{
ir_node
*
blnode
=
get_edge_src_irn
(
edge
);
if
(
!
is_Phi
(
blnode
)
&&
!
is_irn_start_block_placed
(
blnode
))
continue
;
set_nodes_block
(
blnode
,
new_block
);
if
(
is_Phi
(
blnode
)
||
is_irn_start_block_placed
(
blnode
))
move_node
(
blnode
,
new_block
);
}
if
(
old_block
==
get_irg_start_block
(
irg
))
set_irg_start_block
(
irg
,
new_block
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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