From: Christoph Mallon Date: Thu, 6 Nov 2008 10:29:04 +0000 (+0000) Subject: Make a few lines a bit more readable by using a local variable. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c092e2189fa07b455de13e74eef3febda6533370;p=libfirm Make a few lines a bit more readable by using a local variable. [r23471] --- diff --git a/ir/be/ia32/ia32_emitter.c b/ir/be/ia32/ia32_emitter.c index 118709d4a..a03d7ae2f 100644 --- a/ir/be/ia32/ia32_emitter.c +++ b/ir/be/ia32/ia32_emitter.c @@ -1528,10 +1528,11 @@ static void emit_ia32_Conv_I2I(const ir_node *node) assert(!mode_is_float(smaller_mode)); assert(smaller_bits == 8 || smaller_bits == 16); - if (signed_mode && - smaller_bits == 16 && - &ia32_gp_regs[REG_EAX] == get_out_reg(node, 0) && - &ia32_gp_regs[REG_EAX] == arch_get_irn_register(get_irn_n(node, n_ia32_unary_op))) { + const arch_register_t *eax = &ia32_gp_regs[REG_EAX]; + if (signed_mode && + smaller_bits == 16 && + eax == get_out_reg(node, 0) && + eax == arch_get_irn_register(get_irn_n(node, n_ia32_unary_op))) { /* argument and result are both in EAX and signedness is ok: use the * smaller cwtl opcode */ ia32_emitf(node, "\tcwtl\n");