Fixed move_consts_up() failure in some contexts (This partly fixes codegen/lea.c).
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 18 Jan 2010 00:32:49 +0000 (00:32 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 18 Jan 2010 00:32:49 +0000 (00:32 +0000)
[r26979]

ir/opt/reassoc.c

index 07e96cc..2f4c26a 100644 (file)
@@ -782,7 +782,8 @@ static int move_consts_up(ir_node **node) {
                        dbg = dbg == get_irn_dbg_info(l) ? dbg : NULL;
                        goto transform;
                }
-       } else if (get_irn_op(r) == op) {
+       }
+       if (get_irn_op(r) == op) {
                /* l .op. (a .op. b) */
                a = get_binop_left(r);
                b = get_binop_right(r);