[dmd-internals] dmd commit, revision 497

Jason House jason.james.house at gmail.com
Mon May 24 06:08:29 PDT 2010


What are the inlining rules for delegates/lazy arguments when the  
delegate should be known at compile time? I'm porting some C++ code  
with a number of #define's that give the first half of a for loop. The  
body is naturally a delegate parameter, but performance is critical.

Sent from my iPhone

On May 21, 2010, at 9:44 PM, Walter Bright <walter at digitalmars.com>  
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
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals


More information about the dmd-internals mailing list