mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
IR: This optimization is safe when all three regs are consecutive, so avoid disabling it unnecessarily.
This commit is contained in:
1 parent
fb0e81484b
commit
34f79904fd
1 file changed
+2
-3
@@ -617,17 +617,16 @@ namespace MIPSComp {
|
||||
GetVectorRegsPrefixD(dregs, sz, _VD);
|
||||
|
||||
u8 tempregs[4];
|
||||
bool usingTemps = false;
|
||||
for (int i = 0; i < n; i++) {
|
||||
if (!IsOverlapSafe(dregs[i], n, sregs, n, tregs)) {
|
||||
tempregs[i] = IRVTEMP_0 + i;
|
||||
usingTemps = true;
|
||||
} else {
|
||||
tempregs[i] = dregs[i];
|
||||
}
|
||||
}
|
||||
|
||||
if (allowSIMD && sz == V_Quad && !usingTemps && IsConsecutive4(dregs) && IsConsecutive4(sregs) && IsConsecutive4(tregs)) {
|
||||
// If all three are consecutive 4, we're safe regardless of if we use temps so we should not check that here.
|
||||
if (allowSIMD && sz == V_Quad && IsConsecutive4(dregs) && IsConsecutive4(sregs) && IsConsecutive4(tregs)) {
|
||||
IROp opFunc = IROp::Nop;
|
||||
switch (op >> 26) {
|
||||
case 24: //VFPU0
|
||||
|
||||
Reference in new issue
Block a user