From a11bbe6feaaf0319bbf8c0c793549058ff6b9f27 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 21 Feb 2015 21:12:54 -0500 Subject: [PATCH] PPCTables: Remove FL_OUT_S. This is unused, and since it had the same value as FL_OUT_D, it was unnecessarily setting the rS register as an output, even on instructions that only have FL_OUT_D set. --- Source/Core/Core/PowerPC/PPCAnalyst.cpp | 5 ----- Source/Core/Core/PowerPC/PPCTables.h | 1 - 2 files changed, 6 deletions(-) diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index 3ff2001353..a58b4ffc7c 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -544,11 +544,6 @@ void PPCAnalyzer::SetInstructionStats(CodeBlock *block, CodeOp *code, GekkoOPInf code->regsOut[code->inst.RD] = true; block->m_gpa->SetOutputRegister(code->inst.RD, index); } - if (opinfo->flags & FL_OUT_S) - { - code->regsOut[code->inst.RS] = true; - block->m_gpa->SetOutputRegister(code->inst.RS, index); - } if ((opinfo->flags & FL_IN_A) || ((opinfo->flags & FL_IN_A0) && code->inst.RA != 0)) { code->regsIn[code->inst.RA] = true; diff --git a/Source/Core/Core/PowerPC/PPCTables.h b/Source/Core/Core/PowerPC/PPCTables.h index 8cd6b86c65..06e50b8022 100644 --- a/Source/Core/Core/PowerPC/PPCTables.h +++ b/Source/Core/Core/PowerPC/PPCTables.h @@ -31,7 +31,6 @@ enum FL_IN_A0B = FL_IN_A0 | FL_IN_B, FL_IN_A0BC = FL_IN_A0 | FL_IN_B | FL_IN_C, FL_OUT_D = (1<<13), // rD is used as a destination. - FL_OUT_S = FL_OUT_D, // rS is used as a destination. FL_OUT_A = (1<<14), // rA is used as a destination. FL_OUT_AD = FL_OUT_A | FL_OUT_D, FL_TIMER = (1<<15), // Used only for mftb.