aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_kernel_to_ssa.erl
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-09-24 08:10:18 +0200
committerJohn Högberg <[email protected]>2018-09-28 11:40:12 +0200
commit1fbaf155b579bfb1fdec4ac97f7b5fa2211673c6 (patch)
tree249bd29045088dda78f92dd57d3e027d3613c4f0 /lib/compiler/src/beam_kernel_to_ssa.erl
parent330629264c93535f352dc09b51d34f11ec791eb6 (diff)
downloadotp-1fbaf155b579bfb1fdec4ac97f7b5fa2211673c6.tar.gz
otp-1fbaf155b579bfb1fdec4ac97f7b5fa2211673c6.tar.bz2
otp-1fbaf155b579bfb1fdec4ac97f7b5fa2211673c6.zip
Remove unused instruction bs_context_to_binary from the compiler
This has been superseded by bs_get_tail/3. Note that it is NOT removed from the emulator or beam_disasm, as old modules are still legal.
Diffstat (limited to 'lib/compiler/src/beam_kernel_to_ssa.erl')
-rw-r--r--lib/compiler/src/beam_kernel_to_ssa.erl4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/compiler/src/beam_kernel_to_ssa.erl b/lib/compiler/src/beam_kernel_to_ssa.erl
index 747bb06d76..d6e675ae72 100644
--- a/lib/compiler/src/beam_kernel_to_ssa.erl
+++ b/lib/compiler/src/beam_kernel_to_ssa.erl
@@ -707,10 +707,6 @@ bif_cg(#k_bif{op=#k_remote{mod=#k_atom{val=erlang},name=#k_atom{val=Name}},
%% internal_cg(Bif, [Arg], [Ret], Le, State) ->
%% {[Ainstr],State}.
-internal_cg(bs_context_to_binary, [Src0], [], _Le, St) ->
- Src = ssa_arg(Src0, St),
- Set = #b_set{op=context_to_binary,args=[Src]},
- {[Set],St};
internal_cg(dsetelement, [Index0,Tuple0,New0], _Rs, _Le, St) ->
[New,Tuple,#b_literal{val=Index1}] = ssa_args([New0,Tuple0,Index0], St),
Index = #b_literal{val=Index1-1},