From 7e3268621d12c76ba2cbb6613d3e942efaec0df8 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Fri, 24 May 2013 17:59:01 -0700 Subject: [PATCH] Optimizing the mr case. --- src/xenia/cpu/x64/x64_emit_alu.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/x64/x64_emit_alu.cc b/src/xenia/cpu/x64/x64_emit_alu.cc index cd14a52cc..496c8b0ec 100644 --- a/src/xenia/cpu/x64/x64_emit_alu.cc +++ b/src/xenia/cpu/x64/x64_emit_alu.cc @@ -742,8 +742,12 @@ XEEMITTER(orx, 0x7C000378, X )(X64Emitter& e, X86Compiler& c, InstrDat // RA <- (RS) | (RB) GpVar v(c.newGpVar()); - c.mov(v, e.gpr_value(i.X.RT)); - c.or_(v, e.gpr_value(i.X.RB)); + if (i.X.RT == i.X.RB) { + c.mov(v, e.gpr_value(i.X.RT)); + } else { + c.mov(v, e.gpr_value(i.X.RT)); + c.or_(v, e.gpr_value(i.X.RB)); + } e.update_gpr_value(i.X.RA, v); if (i.X.Rc) {