Optimize Vector Dest Analysis in RSP Recompiler

LPV, LUV, and LHV always write to an entire vector register, so it's
beneficial to account for that in Vector Destination Analysis.
This commit is contained in:
LegendOfDragoon 2015-11-30 19:45:43 -08:00
parent 4770198dae
commit b2f73ecb93
1 changed files with 6 additions and 3 deletions

View File

@ -648,14 +648,17 @@ BOOL WriteToVectorDest2 (DWORD DestReg, int PC, BOOL RecursiveCall) {
case RSP_LSC2_RV:
break;
case RSP_LSC2_HV:
case RSP_LSC2_QV:
case RSP_LSC2_BV:
case RSP_LSC2_LV:
case RSP_LSC2_UV:
case RSP_LSC2_PV:
case RSP_LSC2_TV:
break;
case RSP_LSC2_PV:
case RSP_LSC2_UV:
case RSP_LSC2_HV:
if (DestReg == RspOp.rt) { return FALSE; }
break;
default:
CompilerWarning("Unkown opcode in WriteToVectorDest\n%s",RSPOpcodeName(RspOp.Hex,PC));