aboutsummaryrefslogtreecommitdiffstats
path: root/erts/lib_src
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2019-07-09 12:15:40 +0200
committerJohn Högberg <[email protected]>2019-08-06 10:01:54 +0200
commit2ea04617d18bc3c4f80fc3b28af47379a3ec26fc (patch)
treed4ef6d8770ae44386cb4bea9b111305715e22be4 /erts/lib_src
parentdee48ffd9832d59e8f66882ca240bd028a745f59 (diff)
downloadotp-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