remove #ifdef HAVE_CONFIG_Hs
[libfirm] / ir / opt / reassoc.c
index 28b4526..5770604 100644 (file)
@@ -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"
@@ -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. */