projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- undo erroneous checkin
[libfirm]
/
ir
/
opt
/
reassoc.c
diff --git
a/ir/opt/reassoc.c
b/ir/opt/reassoc.c
index
28b4526
..
8bba618
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"
@@
-519,7
+517,7
@@
static int reassoc_Shl(ir_node **node) {
return 0;
blk = get_nodes_block(n);
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) {
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
*/
/*
* 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. */