aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2012-08-15 13:02:18 +0300
committerPekka Enberg <penberg@kernel.org>2012-08-15 13:02:18 +0300
commit2b9d9142c5195b642bc192486dd749088e44510c (patch)
tree55884e4384b042c1991f2e014a64903352159a57
parentb94dd33c7fcbe65e7993ce27a1aa61da474d6e44 (diff)
downloadjato-2b9d9142c5195b642bc192486dd749088e44510c.tar.gz
x86-64: Clean up emulate_op_64()
The 'edx' variable is always NULL on 64-bit so drop the extra branch. Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--arch/x86/insn-selector_64.brg4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/insn-selector_64.brg b/arch/x86/insn-selector_64.brg
index e57963ec..ebb95c77 100644
--- a/arch/x86/insn-selector_64.brg
+++ b/arch/x86/insn-selector_64.brg
@@ -2187,8 +2187,8 @@ emulate_op_64(struct _MBState *state, struct basic_block *s,
struct tree_node *tree, void *func, enum vm_type arg2_type,
enum vm_type return_type)
{
- struct var_info *eax, *edx = NULL;
struct var_info *rdi, *rsi;
+ struct var_info *eax;
eax = get_fixed_var(s->b_parent, MACH_REG_xAX);
state->reg1 = get_var(s->b_parent, J_INT);
@@ -2201,8 +2201,6 @@ emulate_op_64(struct _MBState *state, struct basic_block *s,
select_insn(s, tree, rel_insn(INSN_CALL_REL, (unsigned long) func));
select_insn(s, tree, reg_reg_insn(INSN_MOV_REG_REG, eax, state->reg1));
- if (edx)
- select_insn(s, tree, reg_reg_insn(INSN_MOV_REG_REG, edx, state->reg2));
select_exception_test(s, tree);
}