From: Matthias Braun Date: Mon, 21 Sep 2009 14:42:13 +0000 (+0000) Subject: fix strange bug introduced in refactoring (a half-written if) X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b223d56376cc52d1379d848192f7f092ff80cba9;p=libfirm fix strange bug introduced in refactoring (a half-written if) [r26569] --- diff --git a/ir/be/ia32/ia32_emitter.c b/ir/be/ia32/ia32_emitter.c index 9f7a20a84..25124ddd6 100644 --- a/ir/be/ia32/ia32_emitter.c +++ b/ir/be/ia32/ia32_emitter.c @@ -2570,10 +2570,6 @@ static void bemit_binop(const ir_node *node, const unsigned char opcodes[4]) { ir_node *right = get_irn_n(node, n_ia32_binary_right); if (is_ia32_Immediate(right)) { - /* there's a shorter variant with DEST=EAX */ - const arch_register_t *reg = get_out_reg(node, 0); - if (reg->index == REG_EAX) - bemit_binop_with_imm(node, opcodes[1], opcodes[2], opcodes[3]); } else { bemit_binop_2(node, opcodes[0]);