mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-18 12:01:15 +01:00
7de4623d48
The masking logic can be eliminated when the mask is known to be all ones. This case is very common. Before: 66 48 0F 7E F0 movq rax,xmm6 8B 55 5C mov edx,dword ptr [rbp+5Ch] 83 E0 FF and eax,0FFFFFFFFh 83 E2 00 and edx,0 0B C2 or eax,edx 89 45 5C mov dword ptr [rbp+5Ch],eax 48 8D 15 C3 3C FE 01 lea rdx,[19520020h] 83 E0 07 and eax,7 0F AE 14 82 ldmxcsr dword ptr [rdx+rax*4] After: 66 48 0F 7E F0 movq rax,xmm6 89 45 5C mov dword ptr [rbp+5Ch],eax 48 8D 15 2A D1 FD 01 lea rdx,[19440000h] 83 E0 07 and eax,7 0F AE 14 82 ldmxcsr dword ptr [rdx+rax*4]