X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Freassoc.c;h=c008b150e8266135de1e0bc5a09c352b62182500;hb=a1e9069afa4fa1e16e2d176bcd7905d6a1ed4677;hp=a94567cdef98e33f5f2e0c224ffb60a6ed55111b;hpb=32ea6ea0320f551448bb66e534e3351977464d42;p=libfirm diff --git a/ir/opt/reassoc.c b/ir/opt/reassoc.c index a94567cde..c008b150e 100644 --- a/ir/opt/reassoc.c +++ b/ir/opt/reassoc.c @@ -25,6 +25,7 @@ */ #include "config.h" +#include "iroptimize.h" #include "iropt_t.h" #include "irnode_t.h" #include "irgraph_t.h" @@ -47,7 +48,7 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg;) -typedef struct _walker_t { +typedef struct walker_t { int changes; /**< set, if a reassociation take place */ waitq *wq; /**< a wait queue */ } walker_t; @@ -588,7 +589,7 @@ static void wq_walker(ir_node *n, void *env) walker_t *wenv = env; set_irn_link(n, NULL); - if (is_no_Block(n)) { + if (!is_Block(n)) { ir_node *blk = get_nodes_block(n); if (is_Block_dead(blk) || get_Block_dom_depth(blk) < 0) {