X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fcfopt.c;h=3bd3ac28b9482132f917e10e32556fbd916d4118;hb=1b7dde4df77c02363ddfe79ebeb5356eb7e25970;hp=d0b4d484b7d1527185f74b93899966a3d7812697;hpb=bccc4cbba444620afdcec18a5a7d0ff6480d832e;p=libfirm diff --git a/ir/opt/cfopt.c b/ir/opt/cfopt.c index d0b4d484b..3bd3ac28b 100644 --- a/ir/opt/cfopt.c +++ b/ir/opt/cfopt.c @@ -33,6 +33,7 @@ #include "irgmod.h" #include "irdump.h" #include "irvrfy.h" +#include "iredges.h" #include "array.h" @@ -439,7 +440,7 @@ static void handle_switch_cond(ir_node *proj) { * from the Phi in the loop when removing the Phis. */ static void optimize_blocks(ir_node *b, void *env) { - int i, j, k, n, max_preds, n_preds, p_preds; + int i, j, k, n, max_preds, n_preds, p_preds = -1; ir_node *pred, *phi; ir_node **in; defer_ex_phi *defers; @@ -691,7 +692,7 @@ static void optimize_blocks(ir_node *b, void *env) { */ void optimize_cf(ir_graph *irg) { int i, j, n; - ir_node **in; + ir_node **in = NULL; ir_node *end = get_irg_end(irg); ir_graph *rem = current_ir_graph; irg_dom_state dom_state = get_irg_dom_state(current_ir_graph);