diff options
author | Björn Gustavsson <[email protected]> | 2017-11-30 11:35:31 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-11-30 11:35:31 +0100 |
commit | fadc3d671d2edcf15b87719f350451c32c1f4bbb (patch) | |
tree | 89c23bfcb9f66bdd96e9872254d0117246525431 /lib/compiler/src/v3_codegen.erl | |
parent | 4acae2aa077de84a69b52a3a975d2dee7ca756f2 (diff) | |
parent | 63a4f821b067b19e249a0bec31295c568e2a89b5 (diff) | |
download | otp-fadc3d671d2edcf15b87719f350451c32c1f4bbb.tar.gz otp-fadc3d671d2edcf15b87719f350451c32c1f4bbb.tar.bz2 otp-fadc3d671d2edcf15b87719f350451c32c1f4bbb.zip |
Merge branch 'bjorn/compiler/coverage'
* bjorn/compiler/coverage:
v3_codegen: Remove check of operand for bs_context_to_binary
beam_jump: Eliminate a repeated clause
beam_asm: No longer allow iolists as contents in chunk/2
beam_utils_SUITE: Cover more lines in beam_utils
guard_SUITE: Add a test case to cover beam_dead:turn_op/1
Recognize 'nil' as a literal in beam_utils:bif_to_test/3
Cover more code in beam_bsm:btb_opt_1/3
Add test to cover a line in v3_kernel:opt_single_valued/3
Diffstat (limited to 'lib/compiler/src/v3_codegen.erl')
-rw-r--r-- | lib/compiler/src/v3_codegen.erl | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl index 006a6a82d2..535c0679d8 100644 --- a/lib/compiler/src/v3_codegen.erl +++ b/lib/compiler/src/v3_codegen.erl @@ -1634,12 +1634,7 @@ bif_cg(#k_bif{op=#k_remote{mod=#k_atom{val=erlang},name=#k_atom{val=Name}}, internal_cg(bs_context_to_binary=Instr, [Src0], [], Le, Vdb, Bef, St0) -> [Src] = cg_reg_args([Src0], Bef), - case is_register(Src) of - false -> - {[],clear_dead(Bef, Le#l.i, Vdb), St0}; - true -> - {[{Instr,Src}],clear_dead(Bef, Le#l.i, Vdb), St0} - end; + {[{Instr,Src}],clear_dead(Bef, Le#l.i, Vdb), St0}; internal_cg(dsetelement, [Index0,Tuple0,New0], _Rs, Le, Vdb, Bef, St0) -> [New,Tuple,{integer,Index1}] = cg_reg_args([New0,Tuple0,Index0], Bef), Index = Index1-1, @@ -2571,10 +2566,6 @@ find_stack(_, [], _) -> error. on_stack(V, Stk) -> keymember(V, 1, Stk). -is_register({x,_}) -> true; -is_register({yy,_}) -> true; -is_register(_) -> false. - %% put_catch(CatchTag, Stack) -> Stack' %% drop_catch(CatchTag, Stack) -> Stack' %% Special interface for putting and removing catch tags, to ensure that |