diff options
author | Björn Gustavsson <[email protected]> | 2018-09-23 13:13:35 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-09-24 13:16:02 +0200 |
commit | 494cb3be4a98653c212d673008085bc3ea70dc7e (patch) | |
tree | 48111e4a3c3e45a7df2de0b739721a5c315a98f4 /lib/compiler | |
parent | 7f5a7bcdb54211a3901cb23305f24e1e4b821ec7 (diff) | |
download | otp-494cb3be4a98653c212d673008085bc3ea70dc7e.tar.gz otp-494cb3be4a98653c212d673008085bc3ea70dc7e.tar.bz2 otp-494cb3be4a98653c212d673008085bc3ea70dc7e.zip |
beam_ssa_pre_codegen: Correct some comments
Diffstat (limited to 'lib/compiler')
-rw-r--r-- | lib/compiler/src/beam_ssa_pre_codegen.erl | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/compiler/src/beam_ssa_pre_codegen.erl b/lib/compiler/src/beam_ssa_pre_codegen.erl index bc5609cd76..ca3b792ed6 100644 --- a/lib/compiler/src/beam_ssa_pre_codegen.erl +++ b/lib/compiler/src/beam_ssa_pre_codegen.erl @@ -23,11 +23,10 @@ %% it has been annotated and transformed to help the code generator. %% %% * Some instructions are translated to other instructions closer to -%% the BEAM instructions. For example, the put_tuple instruction is -%% broken apart into the put_tuple_arity and put_tuple_elements -%% instructions. Similary, the binary matching instructions are -%% transformed from the optimization-friendly internal format to -%% instruction more similar to the actual BEAM instructions. +%% the BEAM instructions. For example, the binary matching +%% instructions are transformed from the optimization-friendly +%% internal format to instruction more similar to the actual BEAM +%% instructions. %% %% * Blocks that will need an instruction for allocating a stack frame %% are annotated with a {frame_size,Size} annotation. @@ -932,11 +931,11 @@ is_trap_bif(_, _, _) -> false. %%% used during matching. %%% %%% Depending on where variables are defined and used, they must -%%% be handling in two different ways. +%%% be handled in two different ways. %%% %%% Variables that are always defined in the receive (before branching %%% out into the different clauses of the receive) and used after the -%%% receive, must be handled in the following way: Before each +%%% receive must be handled in the following way: Before each %%% remove_message instruction, each such variable must be copied, and %%% all variables must be consolidated using a phi node in the %%% common exit block for the receive. @@ -1646,7 +1645,7 @@ update_live_phis(_, _, Live) -> Live. %% reserve_yregs(St0) -> St. %% In each block that allocates a stack frame, insert instructions %% that copy variables that must be in Y registers (given by -%% YRegisters) to new variables. +%% the `yregs` annotation) to new variables. %% %% Also allocate specific Y registers for try and catch tags. %% The outermost try/catch tag is placed in y0, any directly |