diff options
author | John Högberg <[email protected]> | 2019-07-09 12:15:40 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2019-08-06 10:01:54 +0200 |
commit | 2ea04617d18bc3c4f80fc3b28af47379a3ec26fc (patch) | |
tree | d4ef6d8770ae44386cb4bea9b111305715e22be4 /erts/lib_src | |
parent | dee48ffd9832d59e8f66882ca240bd028a745f59 (diff) | |
download | otp-2ea04617d18bc3c4f80fc3b28af47379a3ec26fc.tar.gz otp-2ea04617d18bc3c4f80fc3b28af47379a3ec26fc.tar.bz2 otp-2ea04617d18bc3c4f80fc3b28af47379a3ec26fc.zip |
compiler: Simplify set_tuple_element optimization
By removing 'succeeded' tests on setelement/3 when we know it
succeeds, all sequences that are eligible for set_tuple_element
will be nicely bundled in the same block, so we won't need to
bother with special try/catch handling.
The new version is slightly worse in the case where the first
setelement/3 is used to infer the tuple size as that call will
remain in its own block, but in practice this only occurs when
the user manually spells them out and I couldn't find any
examples of this in OTP or Elixir. It's equivalent for record
updates.
Diffstat (limited to 'erts/lib_src')
0 files changed, 0 insertions, 0 deletions