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);
- blk = get_nodes_block(n);
-
hook_reassociate(1);
/* reassociation must run until a fixpoint is reached. */
/*
* Calculate loop info, so we could identify loop-invariant
- * code and threat 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.
*/
}
set_reassoc_running(0);
- /* Handle graph state */
- if (env.changes) {
- set_irg_loopinfo_inconsistent(irg);
- }
-
#ifdef NEW_REASSOC
obstack_free(&commutative_args, NULL);
#endif
CASE(Eor);
CASE(Shl);
default:
- /* leave NULL */;
+ break;
}
return ops;