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);