Skip to content

Commit

Permalink
JitArm64: Minor mtfsfix optimization
Browse files Browse the repository at this point in the history
BFI takes two cycles on many CPUs, whereas AND (immediate) only takes
one.
  • Loading branch information
JosJuice committed Apr 20, 2024
1 parent 637ae12 commit 1eb3208
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ void JitArm64::mtfsfix(UGeckoInstruction inst)
}
else if (imm == 0x0)
{
BFI(WA, ARM64Reg::WZR, shift, 4);
AND(WA, WA, LogicalImm(~mask, GPRSize::B32));
}
else
{
Expand Down

0 comments on commit 1eb3208

Please sign in to comment.