Prevent optimization in case of an Eor, too.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 15 Jul 2011 12:04:30 +0000 (14:04 +0200)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 15 Jul 2011 12:08:20 +0000 (14:08 +0200)
ir/ir/iropt.c

index e4e86f4..79a4dda 100644 (file)
@@ -3079,7 +3079,7 @@ static ir_node *transform_node_bitop_shift(ir_node *n)
        if (is_Shl(left)) {
                tv_bitop = tarval_shr(tv2, tv1);
        } else if (is_Shr(left)) {
-               if (is_Or(n)) {
+               if (is_Or(n) || is_Eor(n)) {
                        /*
                         * TODO this can be improved by checking whether
                         *      the left shift produces an overflow