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
1 changed files with 2 additions and 1 deletions

View File

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