[erlang-questions] "Old inliner"?

Björn Gustavsson bgustavsson@REDACTED
Tue Jan 11 15:29:31 CET 2011


2011/1/10 David Mercer <dmercer@REDACTED>:
> On Monday, January 10, 2011, Björn Gustavsson wrote:
>
>> The old inliner is now only used for doing explicit inlining. The old
>> inliner only does inlining without any optimizations.
>>
>> The new inliner does implicit inling and also does optimizations
>> while inlining.
>
> If I also have the -compile(inline) directive in my source file, will it perform these optimizations -- whatever they are -- on the inlined call/3, or will it skip them on account of the explicit inlining?  When I add the -compile(inline) directive, I still get the old verbose output about the old inliner being used, and also an additional line:
>
>        Inlining: inline_size=24 inline_effort=150
>

That means that both inliners are run, meaning
that the optimizations in the new inliner will
be performed.

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB


More information about the erlang-questions mailing list