Commit 17a34b9e authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ir: Remove redundant maturing of initial and end blocks.

The initial block is not immature after new_ir_graph() anymore for a long time.
The end block is matured automatically by irg_finalize_cons().
parent 91cc8d79
......@@ -217,10 +217,8 @@ static ir_graph *gen_initializer_irg(ir_entity *ent_filename,
call = new_r_Call(bb, get_irg_initial_mem(irg), callee, 3, ins,
get_entity_type(init_ent));
ret = new_r_Return(bb, new_r_Proj(call, mode_M, pn_Call_M), 0, NULL);
mature_immBlock(bb);
add_immBlock_pred(get_irg_end_block(irg), ret);
mature_immBlock(get_irg_end_block(irg));
irg_finalize_cons(irg);
......
......@@ -328,7 +328,6 @@ static void create_clone_proc_irg(ir_entity *ent, const quadruple_t *q)
irg_walk_graph(method_irg, copy_nodes, set_preds, clone_irg);
/* The "cloned" graph must be matured. */
mature_immBlock(get_irg_end_block(clone_irg));
irg_finalize_cons(clone_irg);
}
......
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