aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-01-17 05:17:55 +0100
committerBjörn Gustavsson <[email protected]>2019-01-18 05:45:59 +0100
commita9f0df66e2b4c483fc92d835ac77ded1529aa420 (patch)
tree4ef57ffdff0f6d74ce209d14d21776cdb26ffa64
parent9814a205a2cf9e1024261e2eee80e460e78600d0 (diff)
downloadotp-a9f0df66e2b4c483fc92d835ac77ded1529aa420.tar.gz
otp-a9f0df66e2b4c483fc92d835ac77ded1529aa420.tar.bz2
otp-a9f0df66e2b4c483fc92d835ac77ded1529aa420.zip
beam_ssa_codegen: Remove forgotten and unreachable clause
fd682dd3b1dc corrected label generation for 'or', but forgot to remove the old incorrect clause (that can no longer be reached).
-rw-r--r--lib/compiler/src/beam_ssa_codegen.erl7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/compiler/src/beam_ssa_codegen.erl b/lib/compiler/src/beam_ssa_codegen.erl
index fa5b19228b..fe1a0c8480 100644
--- a/lib/compiler/src/beam_ssa_codegen.erl
+++ b/lib/compiler/src/beam_ssa_codegen.erl
@@ -1280,13 +1280,6 @@ bif_to_test(Op, Args, Fail, St) ->
bif_to_test('and', [V1,V2], Fail) ->
[{test,is_eq_exact,Fail,[V1,{atom,true}]},
{test,is_eq_exact,Fail,[V2,{atom,true}]}];
-bif_to_test('or', [V1,V2], {f,Lbl}=Fail) when Lbl =/= 0 ->
- %% Labels are spaced 2 apart. We can create a new
- %% label by incrementing the Fail label.
- SuccLabel = Lbl + 1,
- [{test,is_eq_exact,{f,SuccLabel},[V1,{atom,false}]},
- {test,is_eq_exact,Fail,[V2,{atom,true}]},
- {label,SuccLabel}];
bif_to_test('not', [Var], Fail) ->
[{test,is_eq_exact,Fail,[Var,{atom,false}]}];
bif_to_test(Name, Args, Fail) ->