Fixed opt/fehler196.c.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Thu, 18 Aug 2011 12:31:40 +0000 (14:31 +0200)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Thu, 18 Aug 2011 12:31:40 +0000 (14:31 +0200)
ir/ir/iropt.c

index 61638d9..e33045e 100644 (file)
@@ -4941,7 +4941,7 @@ static ir_node *transform_node_Or(ir_node *n)
        /* we can combine the relations of two compares with the same operands */
        if (is_Cmp(a) && is_Cmp(b)) {
                ir_node *a_left  = get_Cmp_left(a);
-               ir_node *a_right = get_Cmp_left(a);
+               ir_node *a_right = get_Cmp_right(a);
                ir_node *b_left  = get_Cmp_left(b);
                ir_node *b_right = get_Cmp_right(b);
                if (a_left == b_left && b_left == b_right) {