Remove a redundant test: The mode of the op of a Not must match the mode of the Not.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Sep 2007 19:25:11 +0000 (19:25 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Sep 2007 19:25:11 +0000 (19:25 +0000)
[r15876]

ir/ir/iropt.c

index d772bb1..bd7fed3 100644 (file)
@@ -3083,7 +3083,6 @@ static ir_node *transform_node_Not(ir_node *n) {
        /* check for a boolean Not */
        if (   (get_irn_mode(n) == mode_b)
            && (op_a == op_Proj)
-           && (get_irn_mode(a) == mode_b)
            && (get_irn_op(get_Proj_pred(a)) == op_Cmp)) {
                /* We negate a Cmp. The Cmp has the negated result anyways! */
                n = new_r_Proj(current_ir_graph, get_irn_n(n, -1), get_Proj_pred(a),