Remove a redundant test: The mode of an operand of an Eor must match the mode of...
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Sep 2007 20:40:12 +0000 (20:40 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Sep 2007 20:40:12 +0000 (20:40 +0000)
[r15878]

ir/ir/iropt.c

index bdf6343..8b5719a 100644 (file)
@@ -3046,7 +3046,6 @@ static ir_node *transform_node_Eor(ir_node *n) {
                DBG_OPT_ALGSIM0(oldn, n, FS_OPT_EOR_A_A);
        } else if (mode == mode_b &&
                        is_Proj(a) &&
-                       get_irn_mode(a) == mode_b &&
                        is_Const(b) && is_Const_one(b) &&
                        is_Cmp(get_Proj_pred(a))) {
                /* The Eor negates a Cmp. The Cmp has the negated result anyways! */