<html><body><div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Jan 24, 2025 at 5:46:40 PM, Marco van de Voort via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite">
Slightly different. LTO afaik requires multiple compiles where the later<br>build uses info from the earlier build.<br><br>The FPC implementation inlines if the unit-with-function-to-be-inlined <br>was compiled before the unit that references the inline function. That<br>is within the /same/ (single) build, but also has as disadvantage afaik<br>that if it is NOT like that, it won't be inlined.<br>
</blockquote>
</div>
<br>
<div dir="ltr">I think that’s right. LTO is much slower too so there’s that. I think Jonas once said in the LLVM backend it was 15% faster because of aggressive inlining.</div><div dir="ltr">
<br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,</div> Ryan Joseph</div></div><br>
</div></body></html>