[erlang-patches] Move let expressions into sequences
Björn Gustavsson
bgustavsson@REDACTED
Thu Apr 11 16:49:35 CEST 2013
Looks good, but since it is an optimization
we will merge it to master (after testing it
in our daily builds a few days).
On Tue, Apr 9, 2013 at 11:40 PM, Anthony Ramine <n.oxyde@REDACTED> wrote:
> Hello,
>
> 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
>
>
> https://github.com/nox/otp/compare/erlang:maint...move-let-into-seq
>
> https://github.com/nox/otp/compare/erlang:maint...move-let-into-seq.patch
>
> 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:
>
> https://gist.github.com/nox/2e33fe9a85e035caadda#file-t-core-L14
> https://gist.github.com/nox/2e33fe9a85e035caadda#file-t-erl
>
> Regards,
>
> --
> Anthony Ramine
>
> _______________________________________________
> erlang-patches mailing list
> erlang-patches@REDACTED
> http://erlang.org/mailman/listinfo/erlang-patches
>
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130411/b756217d/attachment.htm>
More information about the erlang-patches
mailing list