diff options
author | Björn Gustavsson <[email protected]> | 2019-08-18 08:31:53 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2019-08-22 13:37:41 +0200 |
commit | 07a323813a47f92abf05bdf2255dc1354e82c55c (patch) | |
tree | f4880adf3724afab82c5973eea860a97b5cc2e96 /erts/doc/man3 | |
parent | 8041849a8e55281b4d954e63e9415995607e1870 (diff) | |
download | otp-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