Re: Inlined functions from compiled units
Hairy Pixels via fpc-pascal <[email protected]>
| Newsgroups | gmane.comp.compilers.free-pascal.general |
|---|---|
| Message-ID | <CAGsUGtkSb06ycHkfomRDjxbSeJQzFBVoz+p-r5onyS_P=1S_ng@mail.gmail.com> |
On Jan 24, 2025 at 5:46:40 PM, Marco van de Voort via fpc-pascal < [email protected]> wrote: > Slightly different. LTO afaik requires multiple compiles where the later > build uses info from the earlier build. > > The FPC implementation inlines if the unit-with-function-to-be-inlined > was compiled before the unit that references the inline function. That > is within the /same/ (single) build, but also has as disadvantage afaik > that if it is NOT like that, it won't be inlined. > 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. Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal