diff options
author | Magnus Lång <[email protected]> | 2018-01-19 16:05:52 +0100 |
---|---|---|
committer | Magnus Lång <[email protected]> | 2018-01-19 16:05:52 +0100 |
commit | 970261b5384bd55abdcbf55bd4a75a3c26a0bda8 (patch) | |
tree | 5e0f8231e24683d2c640fc369805e6bd4d921496 /lib/kernel/doc/src/rpc.xml | |
parent | 69de63049417cf7e047f035b5e086caad9dc7932 (diff) | |
download | otp-970261b5384bd55abdcbf55bd4a75a3c26a0bda8.tar.gz otp-970261b5384bd55abdcbf55bd4a75a3c26a0bda8.tar.bz2 otp-970261b5384bd55abdcbf55bd4a75a3c26a0bda8.zip |
ErLLVM: Preserve precise BEAM tailcall semantics
The BEAM compiler chooses not to perform tailcall optimisations for some
calls in tail position, for example to some built-in functions. However,
when the ErLLVM HiPE backend is used, LLVM may choose to perform
tailcall optimisation on these calls, breaking the expected semantics.
To preserve the precise semantics exhibited by BEAM, the 'notail'
marker, present in LLVM since version 3.8, is added to call instructions
that BEAM has not turned into tail calls, which inhibits LLVM from
performing tail-call optimisation in turn.
Diffstat (limited to 'lib/kernel/doc/src/rpc.xml')
0 files changed, 0 insertions, 0 deletions