diff options
author | Björn Gustavsson <[email protected]> | 2016-05-10 15:21:38 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-05-13 10:52:25 +0200 |
commit | 293962a8ee0af2e15dc8459c7a85e917b84b402a (patch) | |
tree | 3d0aa29c3cc1770b55c112c6b437395da068e40e /lib/compiler/src | |
parent | f36d67e637e2a3346384902a8499c8317a1a5ecc (diff) | |
download | otp-293962a8ee0af2e15dc8459c7a85e917b84b402a.tar.gz otp-293962a8ee0af2e15dc8459c7a85e917b84b402a.tar.bz2 otp-293962a8ee0af2e15dc8459c7a85e917b84b402a.zip |
beam_utils: Remove unused handling of try/3 in live_opt/4
30cc5c902d moved try/3 instruction inside blocks, so the clause for
handling try/3 in live_opt/4 is never executed.
Diffstat (limited to 'lib/compiler/src')
-rw-r--r-- | lib/compiler/src/beam_utils.erl | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/compiler/src/beam_utils.erl b/lib/compiler/src/beam_utils.erl index d187a180de..a96f2bdc65 100644 --- a/lib/compiler/src/beam_utils.erl +++ b/lib/compiler/src/beam_utils.erl @@ -756,11 +756,6 @@ live_opt([{select,_,Src,Fail,List}=I|Is], Regs0, D, Acc) -> Regs1 = x_live([Src], Regs0), Regs = live_join_labels([Fail|List], D, Regs1), live_opt(Is, Regs, D, [I|Acc]); -live_opt([{'try',_,_}=I|Is], Regs, D, Acc) -> - %% If an exeption happens, all x registers will be killed. - %% Therefore, we should only base liveness of the code inside - %% the try. - live_opt(Is, Regs, D, [I|Acc]); live_opt([{try_case,_}=I|Is], _, D, Acc) -> live_opt(Is, live_call(1), D, [I|Acc]); live_opt([{loop_rec,_Fail,_Dst}=I|Is], _, D, Acc) -> |