JitArm64: Minor mtfsfix optimization
BFI takes two cycles on many CPUs, whereas AND (immediate) only takes one.
This commit is contained in:
parent
637ae12ff4
commit
4ac52cf053
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue