summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp
diff options
context:
space:
mode:
authorSintendo <bram.speeckaert@gmail.com>2020-01-29 23:01:57 +0100
committerSintendo <bram.speeckaert@gmail.com>2020-08-05 10:22:50 +0200
commit49a4e0971952248c66ee8bbb2a92a8f1a0a6d5ab (patch)
treec45026b055db9e803c78361b364ade1383f1fc7e /Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp
parentafd25de85ef836ca376d84062e48674d2a5218d9 (diff)
DSPJit: Replace/optimize LEAs
- LEA is a bit silly when the source and the destination are the same. A simple ADD or SHL will do in those cases. 66 8D 04 45 00 00 00 00 lea ax,[rax*2] 66 03 C0 add ax,ax 48 8D 04 00 lea rax,[rax+rax] 48 03 C0 add rax,rax 66 8D 14 D5 00 00 00 00 lea dx,[rdx*8] 66 C1 E2 03 shl dx,3 - When scaling by 2, consider summing the register with itself instead. The former always needs a 32-bit displacement, so the sum is more compact. 66 8D 14 45 00 00 00 00 lea dx,[rax*2] 66 8D 14 00 lea dx,[rax+rax]
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp')
0 files changed, 0 insertions, 0 deletions