diff options
author | Björn Gustavsson <[email protected]> | 2012-12-06 14:13:41 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2012-12-06 14:13:41 +0100 |
commit | 5b40d5502f008f9c44bc4a3bd9037439e35ce0a7 (patch) | |
tree | 2dcc22b52d74b73b08d129d98c8afc541634600e /lib/compiler/src/beam_jump.erl | |
parent | 1f1818d49ccb5bf1a04fadace100a3e3cf95b52f (diff) | |
parent | c38a6726500cd726dd3e605b3be389ee96df131c (diff) | |
download | otp-5b40d5502f008f9c44bc4a3bd9037439e35ce0a7.tar.gz otp-5b40d5502f008f9c44bc4a3bd9037439e35ce0a7.tar.bz2 otp-5b40d5502f008f9c44bc4a3bd9037439e35ce0a7.zip |
Merge branch 'bjorn/compiler/minor-optimization-polishing/OTP-10193'
* bjorn/compiler/minor-optimization-polishing/OTP-10193:
beam_bsm: Improve handling of bs_start_match2 instructions
beam_utils: Improve is_not_used/3 for bit syntax matching
beam_bsm: Make the optimization applicable in more circumstances
beam_jump: Move bs_context_to_binary/1 + exit instruction
Diffstat (limited to 'lib/compiler/src/beam_jump.erl')
-rw-r--r-- | lib/compiler/src/beam_jump.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_jump.erl b/lib/compiler/src/beam_jump.erl index b05d01b2a1..636c299e47 100644 --- a/lib/compiler/src/beam_jump.erl +++ b/lib/compiler/src/beam_jump.erl @@ -220,6 +220,8 @@ extract_seq([{line,_}=Line|Is], Acc) -> extract_seq(Is, [Line|Acc]); extract_seq([{block,_}=Bl|Is], Acc) -> extract_seq_1(Is, [Bl|Acc]); +extract_seq([{bs_context_to_binary,_}=I|Is], Acc) -> + extract_seq_1(Is, [I|Acc]); extract_seq([{label,_}|_]=Is, Acc) -> extract_seq_1(Is, Acc); extract_seq(_, _) -> no. |