projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
929d651
)
fix strange bug introduced in refactoring (a half-written if)
author
Matthias Braun
<matze@braunis.de>
Mon, 21 Sep 2009 14:42:13 +0000
(14:42 +0000)
committer
Matthias Braun
<matze@braunis.de>
Mon, 21 Sep 2009 14:42:13 +0000
(14:42 +0000)
[r26569]
ir/be/ia32/ia32_emitter.c
patch
|
blob
|
history
diff --git
a/ir/be/ia32/ia32_emitter.c
b/ir/be/ia32/ia32_emitter.c
index
9f7a20a
..
25124dd
100644
(file)
--- 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]);