shouldn't be here anymore
[libfirm] / ir / be / ia32 / ia32_optimize.c
index 3b00744..80fb14c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -254,6 +254,10 @@ static void peephole_ia32_Test(ir_node *node)
                left = get_Proj_pred(left);
        }
 
+       /* happens rarely, but if it does code will panic' */
+       if (is_ia32_Unknown_GP(left))
+               return;
+
        /* walk schedule up and abort when we find left or some other node destroys
           the flags */
        schedpoint = sched_prev(node);
@@ -280,8 +284,6 @@ static void peephole_ia32_Test(ir_node *node)
 
        left = turn_into_mode_t(left);
 
-       ir_fprintf(stderr, "Optimizing test(x,x) %+F (-> %+F)\n", node, left);
-
        flags_mode = ia32_reg_classes[CLASS_ia32_flags].mode;
        flags_proj = new_r_Proj(current_ir_graph, block, left, flags_mode,
                                pn_ia32_flags);