summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileUtil.cpp
diff options
context:
space:
mode:
authorSintendo <bram.speeckaert@gmail.com>2023-10-22 15:13:46 +0200
committerSintendo <bram.speeckaert@gmail.com>2023-10-22 15:13:52 +0200
commitdd58a8d65e090519107bea3ea0ef12fbcaaaf83a (patch)
tree2ae61bb07ce4630066f78e06fbdb5ec7a7f43a12 /Source/Core/Common/FileUtil.cpp
parent60e3b4c0932ca963c67922cd7deb5d7e90732b92 (diff)
Jit_LoadStore: Minor dcbx register optimization
Instructions referencing registers r8-r15 take an additional byte to encode. `reg_downcount` may be assigned to one of these registers, so it is a small size win to store the downcount value in `RSCRATCH` first. Before: 33 D2 xor edx,edx 44 8B 6D 64 mov r13d,dword ptr [rbp+64h] 45 85 ED test r13d,r13d 7E 30 jle 0000023546B43F6D 44 8B B5 D4 02 00 00 mov r14d,dword ptr [rbp+2D4h] 41 8B C5 mov eax,r13d BF 07 00 00 00 mov edi,7 F7 F7 div eax,edi After: 33 D2 xor edx,edx 8B 45 64 mov eax,dword ptr [rbp+64h] 85 C0 test eax,eax 7E 30 jle 000001AFBBAE359D 44 8B B5 D4 02 00 00 mov r14d,dword ptr [rbp+2D4h] 44 8B E8 mov r13d,eax BF 07 00 00 00 mov edi,7 F7 F7 div eax,edi
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
0 files changed, 0 insertions, 0 deletions