X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fgvn_pre.c;h=e6702a2b16349f3a64805af488ab9cc564e7c50a;hb=762b472fc81c73cf7a1b0041b8cd286b7206d79d;hp=8ef34a4b95797eb5cf7d02941e69aeecd02011f3;hpb=6f068af98daa4725d60e5d23a8f98ec2841cfa44;p=libfirm diff --git a/ir/opt/gvn_pre.c b/ir/opt/gvn_pre.c index 8ef34a4b9..e6702a2b1 100644 --- a/ir/opt/gvn_pre.c +++ b/ir/opt/gvn_pre.c @@ -537,7 +537,7 @@ static void compute_antic(ir_node *block, void *ctx) static void insert_nodes(ir_node *block, void *ctx) { pre_env *env = (pre_env*)ctx; - ir_node *value, *expr, *idom, *first_s, *worklist; + ir_node *value, *expr, *idom, *first_s; block_info *curr_info, *idom_info; int pos, arity = get_irn_arity(block); int all_same, by_some, updated; @@ -571,7 +571,6 @@ static void insert_nodes(ir_node *block, void *ctx) /* convert the set into a list. This allows the removal of * elements from the set */ - worklist = NULL; foreach_valueset(curr_info->antic_in, value, expr, iter) { ir_mode *mode; @@ -892,11 +891,6 @@ void do_gvn_pre(ir_graph *irg) /* pin the graph again: This is needed due to the use of set_opt_global_cse(1) */ set_irg_pinned(irg, op_pin_state_pinned); restore_optimization_state(&state); - - if (a_env.pairs) { - set_irg_outs_inconsistent(irg); - set_irg_loopinfo_inconsistent(irg); - } } /* do_gvn_pre */ /* Creates an ir_graph pass for do_gvn_pre. */