X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fboolopt.c;h=a39b3fb7fe333e5de4c7c47ac08e631abbe92df7;hb=dd4cd761ab637d4488c7e29f49843b1b02366acf;hp=6ff2a34c71f01177feb570688ed3518d37480f1c;hpb=a169b4d8ce0f7187ed45f9142f28fd0600588ded;p=libfirm diff --git a/ir/opt/boolopt.c b/ir/opt/boolopt.c index 6ff2a34c7..a39b3fb7f 100644 --- a/ir/opt/boolopt.c +++ b/ir/opt/boolopt.c @@ -187,7 +187,7 @@ static ir_node *bool_or(cond_pair *const cpair) return p; } } else if (pnc_lo == pn_Cmp_Eq && pnc_hi == pn_Cmp_Ge) { - /* x == c || c >= c + 1 -> x >= c */ + /* x == c || x >= c + 1 -> x >= c */ ir_graph *const irg = current_ir_graph; ir_node *const block = get_nodes_block(cmp_lo); ir_node *const p = new_r_Proj(irg, block, cmp_lo, mode_b, pn_Cmp_Ge); @@ -426,7 +426,7 @@ void opt_bool(ir_graph *const irg) { irg_walk_graph(irg, NULL, bool_walk, NULL); - set_using_block_mark(irg); + ir_reserve_resources(irg, IR_RESOURCE_BLOCK_MARK); irg_walk_graph(irg, clear_block_infos, collect_phis, NULL); @@ -437,5 +437,5 @@ void opt_bool(ir_graph *const irg) set_irg_extblk_inconsistent(irg); set_irg_loopinfo_inconsistent(irg); - clear_using_block_mark(irg); + ir_free_resources(irg, IR_RESOURCE_BLOCK_MARK); }