diff options
author | Björn Gustavsson <[email protected]> | 2018-01-10 13:09:33 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-01-11 12:00:59 +0100 |
commit | ce67e91a851273c8aee58f7dad270c39f18fe0de (patch) | |
tree | bf096d8821e4afaee7d2dbdeb0ee5cd428fac3ac /lib/xmerl | |
parent | ad72a944c03095c3505cb151c9a93d243fb698b6 (diff) | |
download | otp-ce67e91a851273c8aee58f7dad270c39f18fe0de.tar.gz otp-ce67e91a851273c8aee58f7dad270c39f18fe0de.tar.bz2 otp-ce67e91a851273c8aee58f7dad270c39f18fe0de.zip |
beam_block: Reorder element/2 calls in guards
In a guard, reorder two consecutive calls to the element/2 BIF that
access the same tuple and have the same failure label so that highest
index is fetched first. That will allow the second element/2 to be
replace with the slightly cheaper get_tuple_element/3 instruction.
Diffstat (limited to 'lib/xmerl')
0 files changed, 0 insertions, 0 deletions