dolphin/Source
Ryan Houdek 8d61706440 [AArch64] Optimize lmw.
This instruction is fairly heavily used by Ikaruga to load a bunch of registers from the stack.
In particular at the start of the second stage is a block that takes up ~20% CPU time that includes a usage of lmw to load half of the guest
registers.

Basic thing optimized here is changing from a single 32bit LDR to potentially a single 128bit LDR.
a single 32bit LDR is fairly slow, so we can optimize a few ways.
If we have four or more registers to load, do a 64bit LDP in to two host registers, byteswap, and then move the high 32bits of the host registers in
to the correct mapped guest register locations.
If we have two registers to load then do a 32bit LDP which will load two guest registers in a single instruction.
and then if we have only one register left to load, load it as before.

This saves quite a bit of cycles since the Cortex-A57 and A72's LDR instruction takes a few cycles.

Each 32bit LDR takes 4 cycles latency, plus 1 cycle for post-index(which typically happens in parallel.
Both the 32bit and 64bit LDP take the same amount of latency.

So we are improving latencies and reducing code bloat here.
2015-08-28 14:40:30 -05:00
..
Android Android: Remove "fitSystemWindows" flag from MainActivity layout 2015-08-06 08:34:21 -04:00
Core [AArch64] Optimize lmw. 2015-08-28 14:40:30 -05:00
DSPSpy DSPSpy: support dumping to SD Gecko in slot B on GameCube 2015-07-19 17:26:30 +03:00
DSPTool Set copyright year to when a file was created 2015-05-25 13:22:31 +02:00
PCH Add missing license headers 2015-05-25 13:11:47 +02:00
UnitTests MathUtil: Remove IsNAN and IsINF 2015-08-21 15:05:43 -04:00
VSProps Base.props: Remove DXSDK_DIR from the include path. 2015-04-13 21:44:40 +02:00
.clang-format UseTab: ForIndentation 2014-05-26 21:28:59 -07:00
CMakeLists.txt Windows: Use a shared precompiled header for dolphin code under Source/ 2014-08-14 23:51:13 -07:00
dolphin-emu.sln remove win32/mixed project configurations. 2015-03-14 14:07:21 -07:00