opt_inline: Move all start block placed nodes to the callee's start block, not just...
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 6 Dec 2012 11:49:43 +0000 (12:49 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 6 Dec 2012 11:49:43 +0000 (12:49 +0100)
ir/opt/opt_inline.c

index 6dc3dc5..7c521d0 100644 (file)
@@ -131,7 +131,7 @@ static void set_preds_inline(ir_node *node, void *env)
 
        /* move constants into start block */
        new_node = get_new_node(node);
-       if (is_irn_constlike(new_node)) {
+       if (is_irn_start_block_placed(new_node)) {
                ir_graph *new_irg     = (ir_graph *) env;
                ir_node  *start_block = get_irg_start_block(new_irg);
                set_nodes_block(new_node, start_block);