projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup
[libfirm]
/
ir
/
opt
/
reassoc.c
diff --git
a/ir/opt/reassoc.c
b/ir/opt/reassoc.c
index
243d486
..
c27125e
100644
(file)
--- a/
ir/opt/reassoc.c
+++ b/
ir/opt/reassoc.c
@@
-608,14
+608,12
@@
static void wq_walker(ir_node *n, void *env)
static void do_reassociation(walker_t *wenv)
{
int i, res, changed;
static void do_reassociation(walker_t *wenv)
{
int i, res, changed;
- ir_node *n
, *blk
;
+ ir_node *n;
while (! waitq_empty(wenv->wq)) {
n = (ir_node*)waitq_get(wenv->wq);
set_irn_link(n, NULL);
while (! waitq_empty(wenv->wq)) {
n = (ir_node*)waitq_get(wenv->wq);
set_irn_link(n, NULL);
- blk = get_nodes_block(n);
-
hook_reassociate(1);
/* reassociation must run until a fixpoint is reached. */
hook_reassociate(1);
/* reassociation must run until a fixpoint is reached. */
@@
-943,7
+941,7
@@
int optimize_reassociation(ir_graph *irg)
/*
* Calculate loop info, so we could identify loop-invariant
/*
* Calculate loop info, so we could identify loop-invariant
- * code and t
h
reat it like a constant.
+ * code and treat it like a constant.
* We only need control flow loops here but can handle generic
* INTRA info as well.
*/
* We only need control flow loops here but can handle generic
* INTRA info as well.
*/
@@
-968,11
+966,6
@@
int optimize_reassociation(ir_graph *irg)
}
set_reassoc_running(0);
}
set_reassoc_running(0);
- /* Handle graph state */
- if (env.changes) {
- set_irg_loopinfo_inconsistent(irg);
- }
-
#ifdef NEW_REASSOC
obstack_free(&commutative_args, NULL);
#endif
#ifdef NEW_REASSOC
obstack_free(&commutative_args, NULL);
#endif
@@
-1001,7
+994,7
@@
ir_op_ops *firm_set_default_reassoc(unsigned code, ir_op_ops *ops)
CASE(Eor);
CASE(Shl);
default:
CASE(Eor);
CASE(Shl);
default:
-
/* leave NULL */
;
+
break
;
}
return ops;
}
return ops;