shouldn't be here anymore
[libfirm] / ir / be / ia32 / ia32_optimize.c
index ac03260..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);