mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
JitArm64: Minor mtfsfix optimization
BFI takes two cycles on many CPUs, whereas AND (immediate) only takes one.
This commit is contained in:
@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user