Are there any default dmd optimizations

deadalnix deadalnix at gmail.com
Sat Feb 23 23:58:38 PST 2013


On Sunday, 24 February 2013 at 00:14:14 UTC, Ali Çehreli wrote:
> Does the compiler inline any function even without -inline?
>
> What level of optimization is applied even without -O? One that 
> comes to mind is the elision of certain struct object copies. 
> Is such an optimization applied without -O? If so, are there 
> similar other optimizations?
>
> Thank you,
> Ali

I would bet for register promotions, dead read/write eliminations 
and alike. I don't expect inline to be part of it.


More information about the Digitalmars-d mailing list