Commit 1ef1aa93 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

lower_dw: Do not just move a node itself to the new block, but all its Projs, too.

parent 6dbd58d7
......@@ -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))
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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment