aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_jump.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-11-27 11:34:44 +0100
committerBjörn Gustavsson <[email protected]>2017-11-27 11:34:44 +0100
commit1e5649c8494e90031c878ee540c7ef6d9bf37ffa (patch)
tree28ac1b9198666ce5eb791e914baf6f803fab1d88 /lib/compiler/src/beam_jump.erl
parentf5891aa400e79da544693e8b0282438896f599fd (diff)
downloadotp-1e5649c8494e90031c878ee540c7ef6d9bf37ffa.tar.gz
otp-1e5649c8494e90031c878ee540c7ef6d9bf37ffa.tar.bz2
otp-1e5649c8494e90031c878ee540c7ef6d9bf37ffa.zip
beam_jump: Eliminate a repeated clause
This clause seems to have been introduced in cac51274eb9a.
Diffstat (limited to 'lib/compiler/src/beam_jump.erl')
-rw-r--r--lib/compiler/src/beam_jump.erl11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/compiler/src/beam_jump.erl b/lib/compiler/src/beam_jump.erl
index 0bcec9ce19..c33de217bd 100644
--- a/lib/compiler/src/beam_jump.erl
+++ b/lib/compiler/src/beam_jump.erl
@@ -336,17 +336,6 @@ opt([{test,_,{f,L}=Lbl,_}=I|[{label,L}|_]=Is], Acc0, St0) ->
{Acc,St} = opt_useless_loads(Acc0, L, St0),
opt(Is, Acc, St)
end;
-opt([{test,_,{f,L}=Lbl,_}=I|[{label,L}|_]=Is], Acc0, St0) ->
- %% Similar to the above, except we have a fall-through rather than jump
- %% Test Label Ops
- %% label Label
- case beam_utils:is_pure_test(I) of
- false ->
- opt(Is, [I|Acc0], label_used(Lbl, St0));
- true ->
- {Acc,St} = opt_useless_loads(Acc0, L, St0),
- opt(Is, Acc, St)
- end;
opt([{test,Test0,{f,L}=Lbl,Ops}=I|[{jump,To}|Is]=Is0], Acc, St) ->
case is_label_defined(Is, L) of
false ->