X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fifconv.c;h=d53c538aee7fc5a53be7fcecb7f3a8f2ed2f998b;hb=529678cf846e774807b0e3e1b58de1e76019789c;hp=bc4ec8e4e4d002697f4f62140ae7845f703c23c0;hpb=c8e2af98ce2f42ea6de5d0571bc649427cd17f24;p=libfirm diff --git a/ir/opt/ifconv.c b/ir/opt/ifconv.c index bc4ec8e4e..d53c538ae 100644 --- a/ir/opt/ifconv.c +++ b/ir/opt/ifconv.c @@ -35,11 +35,13 @@ #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" @@ -93,7 +95,7 @@ static ir_node *optimize_mux_chain(ir_node *mux) 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); @@ -289,7 +291,7 @@ static int _can_move_to(ir_node *expr, ir_node *dest_block, int depth, const opt } 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; } @@ -552,9 +554,9 @@ static void _find_conds(ir_node *irn, unsigned long visited_nr, 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)); } } @@ -941,7 +943,7 @@ void opt_if_conv(ir_graph *irg, const opt_if_conv_info_t *params) 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; @@ -955,7 +957,7 @@ void opt_if_conv(ir_graph *irg, const opt_if_conv_info_t *params) /* Init the debug stuff. */ dbg = firm_dbg_register("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 */