Is there a way to get a list of functions that get inlined by dmd?

Don nospam at nospam.com
Tue Feb 9 08:43:51 PST 2010


Trass3r wrote:
>> But a big problem is that inlining seems to be done only inside one
>> module and not across modules which makes modules with something like
>> small helper or math functions which are used across different modules
>> senseless.
>>
> 
> Yeah, I think so as well as each module is compiled separately.
> Nevertheless my patch lists functions that aren't used in the same 
> module. Maybe I've missed something.

I don't think so. It's hard to believe that the inliner would be so limited.
It'd be great to assemble some important test cases that currently fail. 
Probably 'ref' arguments are the main culprit.


More information about the Digitalmars-d-learn mailing list