Commit 0ccd17e4 authored by sebastian.buchwald1's avatar sebastian.buchwald1
Browse files

Move Proj nodes to the block of their operands.

This fixes opt/fehler268.c and opt/fehler272.c.
parent bcf3f057
......@@ -285,7 +285,8 @@ ir_node *part_block_edges(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))
ir_node *skip = skip_Proj(blnode);
if (!is_Phi(skip) && !is_irn_start_block_placed(skip))
set_nodes_block(blnode, new_block);
Markdown is supported
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