From eddafd450eb9b97c96499c490142062fe6b8b17d Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Thu, 24 Dec 2009 05:21:07 +0000 Subject: [PATCH] Fix an extremely silly copy-paste error. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4727 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp | 2 +- Source/Core/Core/Src/PowerPC/Jit64IL/Jit_Integer.cpp | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp b/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp index 11ab74faa3..a75db9420c 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp @@ -443,7 +443,7 @@ InstLoc IRBuilder::FoldXor(InstLoc Op1, InstLoc Op2) { return FoldXor(getOp1(Op1), EmitIntConst(RHS)); } } - if (Op1 == Op2) return Op1; + if (Op1 == Op2) return EmitIntConst(0); return EmitBiOp(Xor, Op1, Op2); } diff --git a/Source/Core/Core/Src/PowerPC/Jit64IL/Jit_Integer.cpp b/Source/Core/Core/Src/PowerPC/Jit64IL/Jit_Integer.cpp index e21feef070..ae7ecec9ce 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64IL/Jit_Integer.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64IL/Jit_Integer.cpp @@ -146,13 +146,6 @@ void Jit64::xorx(UGeckoInstruction inst) { INSTRUCTION_START JITDISABLE(Integer) - if (inst.RB == inst.RS) - { - IREmitter::InstLoc val = ibuild.EmitStoreGReg(ibuild.EmitIntConst(0), inst.RA); - if (inst.Rc) - ComputeRC(ibuild, val); - return; - } IREmitter::InstLoc val = ibuild.EmitLoadGReg(inst.RB); val = ibuild.EmitXor(ibuild.EmitLoadGReg(inst.RS), val); ibuild.EmitStoreGReg(val, inst.RA);