X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_osr.c;h=3253615ae658a8b6943c2e311f8d60db248c79d7;hb=51ae0985ed587b82ae03ab2f752b5a9917a309b2;hp=efa3bafe8a7f2cd0f15c518d7dda43820a4f20b5;hpb=e30e5834fd8c1c3a7d28fc66e99b91a84993bde8;p=libfirm diff --git a/ir/opt/opt_osr.c b/ir/opt/opt_osr.c index efa3bafe8..3253615ae 100644 --- a/ir/opt/opt_osr.c +++ b/ir/opt/opt_osr.c @@ -53,6 +53,7 @@ #include "array.h" #include "firmstat.h" #include "xmalloc.h" +#include "error.h" /** The debug handle. */ DEBUG_ONLY(static firm_dbg_module_t *dbg;) @@ -305,7 +306,7 @@ static ir_node *do_apply(ir_opcode code, dbg_info *db, ir_node *op1, ir_node *op result = new_rd_Sub(db, irg, block, op1, op2, mode); break; default: - assert(0); + panic("Unsupported opcode"); result = NULL; } return result; @@ -1117,7 +1118,7 @@ static ir_node *applyOneEdge(ir_node *iv, ir_node *rc, LFTR_edge *e, iv_env *env DB((dbg, LEVEL_4, " - %+F", tv_r)); break; default: - assert(0); + panic("Unsupported opcode"); tv = tarval_bad; } @@ -1189,7 +1190,7 @@ static void do_lftr(ir_node *cmp, void *ctx) { ir_node *iv, *rc; ir_node *nleft = NULL, *nright = NULL; - if (get_irn_op(cmp) != op_Cmp) + if (!is_Cmp(cmp)) return; left = get_Cmp_left(cmp);