Make spiller more deterministic.
[libfirm] / ir / opt / tropt.c
index 7bc32cf..8762a8f 100644 (file)
@@ -62,7 +62,7 @@ static gen_pointer_type_to_func gen_pointer_type_to = default_gen_pointer_type_t
 static ir_type *default_gen_pointer_type_to(ir_type *tp)
 {
        ir_type *res = find_pointer_type_to_type(tp);
-       if (res == firm_unknown_type)
+       if (is_unknown_type(res))
                res = new_type_pointer(tp);
 
        return res;
@@ -176,9 +176,8 @@ static void normalize_irn_class_cast(ir_node *n, void *env)
 static void pure_normalize_irg_class_casts(ir_graph *irg)
 {
        assert(get_irg_class_cast_state(irg) != ir_class_casts_any &&
-               "Cannot normalize irregular casts.");
+              "Cannot normalize irregular casts.");
        if (get_irg_class_cast_state(irg) == ir_class_casts_normalized) {
-               verify_irg_class_cast_state(irg);
                return;
        }