diff options
author | Björn Gustavsson <[email protected]> | 2017-10-19 10:49:57 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-10-27 08:49:00 +0200 |
commit | 758712d629475a2f34f8b48babcbae953381b915 (patch) | |
tree | 29386655c4c50cd5dffe13ffd396802d200b16c0 /lib/compiler/src/v3_life.hrl | |
parent | db67b2c3d1198b2093cb9add3aa55c59bb368ab5 (diff) | |
download | otp-758712d629475a2f34f8b48babcbae953381b915.tar.gz otp-758712d629475a2f34f8b48babcbae953381b915.tar.bz2 otp-758712d629475a2f34f8b48babcbae953381b915.zip |
Eliminate the v3_life pass
The v3_life pass does not do enough to be worth being its own
pass. Essentially it does two things:
* Calculates life-time information starting from the annotations
that v3_kernel provides. That part can be moved into v3_codegen.
* Rewrites the Kernel Erlang records to similar plain tuples
(for example, #k_cons{hd=Hd,tl=Tl} is rewritten to {cons,Hd,Tl}).
That rewriting is not needed and can be eliminated.
Diffstat (limited to 'lib/compiler/src/v3_life.hrl')
-rw-r--r-- | lib/compiler/src/v3_life.hrl | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/compiler/src/v3_life.hrl b/lib/compiler/src/v3_life.hrl deleted file mode 100644 index 5c76312067..0000000000 --- a/lib/compiler/src/v3_life.hrl +++ /dev/null @@ -1,29 +0,0 @@ -%% -%% %CopyrightBegin% -%% -%% Copyright Ericsson AB 1999-2016. All Rights Reserved. -%% -%% Licensed under the Apache License, Version 2.0 (the "License"); -%% you may not use this file except in compliance with the License. -%% You may obtain a copy of the License at -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%% -%% %CopyrightEnd% -%% -%% This record contains variable life-time annotation for a -%% kernel expression. Added by v3_life, used by v3_codegen. - --type vdb_entry() :: {atom(),non_neg_integer(),non_neg_integer()}. - --record(l, {ke, %Kernel expression - i=0 :: non_neg_integer(), %Op number - vdb=[] :: [vdb_entry()], %Variable database - a=[] :: [term()]}). %Core annotation - |