Revert "fix opt/loop_without_phi"
[libfirm] / ir / opt / critical_edges.c
index 0afa802..b82f3a7 100644 (file)
@@ -50,7 +50,7 @@ static void walk_critical_cf_edges(ir_node *n, void *env)
 {
        int arity, i;
        ir_node *pre, *block, *jmp;
-       cf_env *cenv = env;
+       cf_env *cenv = (cf_env*)env;
        ir_graph *irg = get_irn_irg(n);
 
        /* Block has multiple predecessors */
@@ -73,7 +73,7 @@ static void walk_critical_cf_edges(ir_node *n, void *env)
                                        continue;
                                goto insert;
                        }
-                       if (is_IJmp(pre)) {
+                       if (is_unknown_jump(pre)) {
                                /* we can't add blocks in between ijmp and its destinations
                                 * TODO: What now, we can't split all critical edges because of this... */
                                fprintf(stderr, "libfirm warning: Couldn't split all critical edges (compiler will probably fail now)\n");