[dmd-internals] dmd commit, revision 497

Brad Roberts braddr at puremagic.com
Fri May 21 21:24:58 PDT 2010


On 5/21/2010 6:44 PM, Walter Bright wrote:
> 
> dsource.org wrote:
>> dmd commit, revision 497
>>
>>
>> user: walter
>>
>> msg:
>> bugzilla 2008 Poor optimization of functions with ref parameters
>>
>> http://www.dsource.org/projects/dmd/changeset/497
>>
>>   
> 
> A couple other improvements to the inliner are possible:
> 
> 1. inline functions with loops in them, as long as the place where they
> are inlined is a statement rather than an expression
> 
> 2. always inline private functions that are called exactly once, even if
> they are large, if it is possible to inline them

Yup.. 2008 wasn't the end, but the beginning.  I'm going to knock out as many of
the reasons things aren't inlined as possible... in the fullness of time.

Cost should be the decider, not what's inside the function.


More information about the dmd-internals mailing list