aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_kernel_to_ssa.erl
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-05-08 08:51:58 +0200
committerJohn Högberg <[email protected]>2018-09-24 06:54:02 +0200
commit2a6df910f450a4f69fbc482904e9d2e4512e6574 (patch)
tree4cf494048e9788f7a53077debed585264efbf67a /lib/compiler/src/beam_kernel_to_ssa.erl
parentcf5094ccc73446496e33b0aa6cbbf7fe65bbbe76 (diff)
downloadotp-2a6df910f450a4f69fbc482904e9d2e4512e6574.tar.gz
otp-2a6df910f450a4f69fbc482904e9d2e4512e6574.tar.bz2
otp-2a6df910f450a4f69fbc482904e9d2e4512e6574.zip
Remove match context reuse annotations from core/kernel passes
The upcoming beam_ssa_bsm pass makes this redundant.
Diffstat (limited to 'lib/compiler/src/beam_kernel_to_ssa.erl')
-rw-r--r--lib/compiler/src/beam_kernel_to_ssa.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/compiler/src/beam_kernel_to_ssa.erl b/lib/compiler/src/beam_kernel_to_ssa.erl
index c55a57ab32..747bb06d76 100644
--- a/lib/compiler/src/beam_kernel_to_ssa.erl
+++ b/lib/compiler/src/beam_kernel_to_ssa.erl
@@ -276,12 +276,11 @@ select_nil(#k_val_clause{val=#k_nil{},body=B}, V, Tf, Vf, St0) ->
{Is ++ Bis,St}.
select_binary(#k_val_clause{val=#k_binary{segs=#k_var{name=Ctx0}},body=B},
- #k_var{anno=Anno0}=Src, Tf, Vf, St0) ->
- Anno = #{reuse_for_context=>member(reuse_for_context, Anno0)},
+ #k_var{}=Src, Tf, Vf, St0) ->
{Ctx,St1} = new_ssa_var(Ctx0, St0),
{Bis0,St2} = match_cg(B, Vf, St1),
{TestIs,St} = make_cond_branch(succeeded, [Ctx], Tf, St2),
- Bis1 = [#b_set{anno=Anno,op=bs_start_match,dst=Ctx,
+ Bis1 = [#b_set{op=bs_start_match,dst=Ctx,
args=[ssa_arg(Src, St)]}] ++ TestIs ++ Bis0,
Bis = finish_bs_matching(Bis1),
{Bis,St}.