X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Freassoc.c;h=8bba618986d66b9086be23e35aa84a30c0eeeb43;hb=e0a2eca7e1d13c2f1ccb8a70479039c01c0c69ef;hp=28b4526266a07fc8c7863d730059c6d51de3ccf0;hpb=8b005796a55ce35aef5d6aa5a6c82f0454824661;p=libfirm diff --git a/ir/opt/reassoc.c b/ir/opt/reassoc.c index 28b452626..8bba61898 100644 --- a/ir/opt/reassoc.c +++ b/ir/opt/reassoc.c @@ -23,9 +23,7 @@ * @author Michael Beck * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "iropt_t.h" #include "irnode_t.h" @@ -519,7 +517,7 @@ static int reassoc_Shl(ir_node **node) { return 0; blk = get_nodes_block(n); - c = new_r_Const(current_ir_graph, blk, mode, tv); + c = new_Const(tv); irn = new_rd_Mul(get_irn_dbg_info(n), current_ir_graph, blk, x, c, mode); if (irn != n) { @@ -872,7 +870,7 @@ static void reverse_rules(ir_node *node, void *env) { /* * do the reassociation */ -void optimize_reassociation(ir_graph *irg) +int optimize_reassociation(ir_graph *irg) { walker_t env; irg_loopinfo_state state; @@ -931,6 +929,7 @@ void optimize_reassociation(ir_graph *irg) del_waitq(env.wq); current_ir_graph = rem; + return env.changes; } /* optimize_reassociation */ /* Sets the default reassociation operation for an ir_op_ops. */