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:
parent
4770198dae
commit
b2f73ecb93
|
@ -648,14 +648,17 @@ BOOL WriteToVectorDest2 (DWORD DestReg, int PC, BOOL RecursiveCall) {
|
||||||
case RSP_LSC2_RV:
|
case RSP_LSC2_RV:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RSP_LSC2_HV:
|
|
||||||
case RSP_LSC2_QV:
|
case RSP_LSC2_QV:
|
||||||
case RSP_LSC2_BV:
|
case RSP_LSC2_BV:
|
||||||
case RSP_LSC2_LV:
|
case RSP_LSC2_LV:
|
||||||
case RSP_LSC2_UV:
|
|
||||||
case RSP_LSC2_PV:
|
|
||||||
case RSP_LSC2_TV:
|
case RSP_LSC2_TV:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case RSP_LSC2_PV:
|
||||||
|
case RSP_LSC2_UV:
|
||||||
|
case RSP_LSC2_HV:
|
||||||
|
if (DestReg == RspOp.rt) { return FALSE; }
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
CompilerWarning("Unkown opcode in WriteToVectorDest\n%s",RSPOpcodeName(RspOp.Hex,PC));
|
CompilerWarning("Unkown opcode in WriteToVectorDest\n%s",RSPOpcodeName(RspOp.Hex,PC));
|
||||||
|
|
Loading…
Reference in New Issue