aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/man3
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-08-18 08:31:53 +0200
committerBjörn Gustavsson <[email protected]>2019-08-22 13:37:41 +0200
commit07a323813a47f92abf05bdf2255dc1354e82c55c (patch)
treef4880adf3724afab82c5973eea860a97b5cc2e96 /erts/doc/man3
parent8041849a8e55281b4d954e63e9415995607e1870 (diff)
downloadotp-07a323813a47f92abf05bdf2255dc1354e82c55c.tar.gz
otp-07a323813a47f92abf05bdf2255dc1354e82c55c.tar.bz2
otp-07a323813a47f92abf05bdf2255dc1354e82c55c.zip
Optimize the move_call instructions
The `move_call` instructions are combinations of a `move` instruction and a `call` instruction. As currently implemented, the `move` part of the instruction is executed in its entirety before the `call` part is even started. The reason is that the C compiler cannot see that it would be safe to read the target address of the call before writing to the move destination. Rewrite the instructions to explicitly read both the source for the move and the target address for the call before writing the destination of the move. Micro-benchmarks show a small but consistent speed-up after this change.
Diffstat (limited to 'erts/doc/man3')
0 files changed, 0 insertions, 0 deletions