Commit afd9035f authored by sebastian.buchwald1's avatar sebastian.buchwald1
Browse files

Moved bugfix to appropriate function.

parent 0ccd17e4
......@@ -285,8 +285,7 @@ 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);
ir_node *skip = skip_Proj(blnode);
if (!is_Phi(skip) && !is_irn_start_block_placed(skip))
if (!is_Phi(blnode) && !is_irn_start_block_placed(blnode))
set_nodes_block(blnode, new_block);
......@@ -402,7 +402,8 @@ static inline int is_irn_keep_(const ir_node *node)
static inline int is_irn_start_block_placed_(const ir_node *node)
return is_op_start_block_placed(get_irn_op_(node));
const ir_node *const skip = skip_Proj_const(node);
return is_op_start_block_placed(get_irn_op_(skip));
static inline int is_irn_cse_neutral_(const ir_node *node)
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