#include "irgraph_t.h"
#include "irnode_t.h"
+#include "irgwalk.h"
#include "iropt_t.h"
#include "irgmod.h"
#include "irmode_t.h"
#include "ircons_t.h"
#include "irdom_t.h"
+#include "irgwalk.h"
#include "ifconv.h"
#include "irflag_t.h"
return mux;
res = mux;
- null = get_tarval_null(mode);
+ null = get_mode_null(mode);
minus_one = tarval_sub(null, get_tarval_one(mode));
ops[0] = get_Mux_false(mux);
};
/** The debugging module. */
-static firm_dbg_module_t *dbg;
+DEBUG_ONLY(static firm_dbg_module_t *dbg;)
/**
* A simple check for side effects upto an opcode of a ir node.
}
end:
- DBG((dbg, LEVEL_3, "\t\t\t%Dcan move to %n: %d\n", depth, expr, res));
+ DBG((dbg, LEVEL_3, "\t\t\tcan move to %n: %d\n", expr, res));
return res;
}
list_del_init(&masked_by->list);
}
- DBG((dbg, LEVEL_2, "%D%n (%s branch) "
+ DBG((dbg, LEVEL_2, "%n (%s branch) "
"for pos %d in block %n reached by %n\n",
- depth, cond, proj ? "true" : "false", pos,
+ cond, proj ? "true" : "false", pos,
block, masked_by ? masked_by->cond : NULL));
}
}
if (params)
memcpy(&p, params, sizeof(p));
else
- memcpy(&p, &default_info, sizeof(params));
+ memcpy(&p, &default_info, sizeof(p));
if (! p.allow_mux)
p.allow_mux = default_info.allow_mux;
INIT_LIST_HEAD(&cwi.phi_head);
/* Init the debug stuff. */
- dbg = firm_dbg_register("firm.opt.ifconv");
+ FIRM_DBG_REGISTER(dbg, "firm.opt.ifconv");
#if 0
- firm_dbg_set_mask(dbg, LEVEL_1);
+ firm_dbg_set_mask(dbg, LEVEL_1|LEVEL_2|LEVEL_3);
#endif
/* if-conversion works better with normalized returns */