X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firssacons.c;h=2aa5141be6485dbacb7039b316f73f772bf8a025;hb=7498ed3766f3f98604d96d1b75978a3a9e6768ed;hp=7dd6df85074f0f1b1df488b69e19352b4de32c94;hpb=cb7f468da0e787741c1f1e92f89b0cabe7c19441;p=libfirm diff --git a/ir/ir/irssacons.c b/ir/ir/irssacons.c index 7dd6df850..2aa5141be 100644 --- a/ir/ir/irssacons.c +++ b/ir/ir/irssacons.c @@ -32,16 +32,12 @@ #include "irnode_t.h" #include "irgwalk.h" -typedef struct walk_env_t { - int n_loc; /**< Number of newly allocated locations. */ -} walk_env; - /** * Post-walker: prepare the graph nodes for new SSA construction cycle by allocation * new arrays. */ -static void prepare_nodes(ir_node *irn, void *ctx) { - walk_env *env = ctx; +static void prepare_nodes(ir_node *irn, void *env) { + (void)env; switch (get_irn_opcode(irn)) { case iro_Block: @@ -113,8 +109,6 @@ static void prepare_nodes(ir_node *irn, void *ctx) { * to construct new values. */ void ssa_cons_start(ir_graph *irg, int n_loc) { - walk_env env; - /* for now we support only phase_high graphs */ assert(irg->phase_state == phase_high); @@ -128,13 +122,15 @@ void ssa_cons_start(ir_graph *irg, int n_loc) { * seems worth to do this. First, we have to check if they really exists and * then clear them. We do not expect SSA construction is used often. */ - irg_walk_graph(irg, NULL, prepare_nodes, &env); + irg_walk_graph(irg, NULL, prepare_nodes, NULL); } /** * mature all immature Blocks. */ static void finish_block(ir_node *block, void *env) { + (void)env; + if (!get_Block_matured(block)) mature_immBlock(block); }