[erlang-patches] Move let expressions into sequences
Wed Apr 10 09:55:58 CEST 2013
On 04/09/2013 11:40 PM, Anthony Ramine wrote:
> The Core Erlang compiler simplifies let expressions by moving them into their argument when it is another let or a case expression. It can then perform other optimizations such as removing the let expressions altogether, sometimes saving BEAM registers later in the process.
> This patch teaches sys_core_fold how to move let expressions into sequence arguments.
> git fetch https://github.com/nox/otp.git move-let-into-seq
> For the record, I managed to encounter this while working on the file optimization in branch file-receive-optim. You can find a short file showing seq in let in the following gist:
Fetched your branch and currently in the 'pu' branch.
BR Fredrik Gustafsson
Erlang OTP Team
More information about the erlang-patches