projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- BugFix: kill partitions with 0 blocks either
[libfirm]
/
ir
/
opt
/
reassoc.c
diff --git
a/ir/opt/reassoc.c
b/ir/opt/reassoc.c
index
28b4526
..
5770604
100644
(file)
--- a/
ir/opt/reassoc.c
+++ b/
ir/opt/reassoc.c
@@
-23,9
+23,7
@@
* @author Michael Beck
* @version $Id$
*/
* @author Michael Beck
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include "iropt_t.h"
#include "irnode_t.h"
#include "iropt_t.h"
#include "irnode_t.h"
@@
-872,7
+870,7
@@
static void reverse_rules(ir_node *node, void *env) {
/*
* do the reassociation
*/
/*
* do the reassociation
*/
-
void
optimize_reassociation(ir_graph *irg)
+
int
optimize_reassociation(ir_graph *irg)
{
walker_t env;
irg_loopinfo_state state;
{
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;
del_waitq(env.wq);
current_ir_graph = rem;
+ return env.changes;
} /* optimize_reassociation */
/* Sets the default reassociation operation for an ir_op_ops. */
} /* optimize_reassociation */
/* Sets the default reassociation operation for an ir_op_ops. */