<div dir="ltr"><div dir="ltr">On Mon, Aug 10, 2020 at 12:50 AM claptrap via Digitalmars-d-learn <<a href="mailto:digitalmars-d-learn@puremagic.com">digitalmars-d-learn@puremagic.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sunday, 9 August 2020 at 22:18:13 UTC, Per Nordlöw wrote:<br>
> ...<br>
If you enable link time optimisation you get cross module <br>
inlining,<br>
<br>
-flto=full<br>
<br>
I'm not 100% sure but I think LDC did cross module inlining by <br>
default at some point, then I updated the compiler and had to add <br>
the LTO thing. I think there is an option to enable just cross <br>
module inlining, but if you want speed you'll probably want to <br>
have LTO enabled anyway?<br></blockquote><div><br></div><div>I am not sure but last time I checked ldc does not do cross module inlinig by default, and LTO only help if your ldc(druntime+phobos) are built with enabled LTO[1]</div><div><br></div><div>[1] <a href="https://github.com/ldc-developers/ldc/issues/2182#issuecomment-343166633">https://github.com/ldc-developers/ldc/issues/2182#issuecomment-343166633</a> </div></div></div>