JitArm64: Minor mtfsfix optimization

BFI takes two cycles on many CPUs, whereas AND (immediate) only takes
one.
This commit is contained in:
JosJuice 2024-04-20 11:30:06 +02:00
parent 637ae12ff4
commit 4ac52cf053

View file

@ -896,7 +896,8 @@ void JitArm64::mtfsfix(UGeckoInstruction inst)
}
else if (imm == 0x0)
{
BFI(WA, ARM64Reg::WZR, shift, 4);
const u32 inverted_mask = ~mask;
AND(WA, WA, LogicalImm(inverted_mask, GPRSize::B32));
}
else
{