X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firssacons.c;h=930fc7413b4045bce5fa599f13a2bc2c1ee41056;hb=a25c9abc4bc057c1c09f40afb150920aadbb7a42;hp=9470a8bb043e52b2e36fcd68f82291ddaee891ac;hpb=4930ee18afa35464a835a781671615571efa8a90;p=libfirm diff --git a/ir/ir/irssacons.c b/ir/ir/irssacons.c index 9470a8bb0..930fc7413 100644 --- a/ir/ir/irssacons.c +++ b/ir/ir/irssacons.c @@ -21,7 +21,6 @@ * @file * @brief restarting SSA construction for values. * @author Michael Beck - * @version $Id$ */ #include "config.h" @@ -40,27 +39,16 @@ static void (*ssa_cons_walker)(ir_graph *, irg_walk_func *, irg_walk_func *, voi */ static void prepare_blocks(ir_node *block, void *env) { - (void)env; unsigned n_loc = current_ir_graph->n_loc; struct obstack *obst = current_ir_graph->obst; + (void)env; /* reset mature flag */ set_Block_matured(block, 0); - block->attr.block.graph_arr = NEW_ARR_D(ir_node *, obst, n_loc); + block->attr.block.graph_arr = NEW_ARR_D(ir_node *, obst, n_loc); memset(block->attr.block.graph_arr, 0, sizeof(ir_node*) * n_loc); set_Block_phis(block, NULL); } -/* - * Restarts SSA construction on the given graph with n_loc - * new values. - * - * @param irg the graph on which the SSA construction is restarted - * @param n_loc number of new variables - * - * After this function is complete, the graph is in phase_building - * again and set_value()/get_value() and mature_block() can be used - * to construct new values. - */ void ssa_cons_start(ir_graph *irg, int n_loc) { /* for now we support only phase_high graphs */ @@ -90,10 +78,6 @@ static void finish_block(ir_node *block, void *env) mature_immBlock(block); } -/* - * Finalize the (restarted) SSA construction. Matures all blocks that are - * not matured yet and reset the graph state to phase_high. - */ void ssa_cons_finish(ir_graph *irg) { ssa_cons_walker(irg, NULL, finish_block, NULL);