i'm willing to accept I have a lot to learn if you can educate me on
little intricacies like that, so I may better submit code to the
compiler. I don't want to say it's 'just wrong' though as there might
be gains in some situations. I guess it has something to do with memory
page sizes, right?
Gareth aka. Kit
On 08/11/2019 21:31, J. Gareth Moreton wrote:
Can you explain what you mean by 'blobbing'?
On 08/11/2019 19:36, Marģers . via fpc-devel wrote:
- Identifying functions that are only used once. This became a
slight point of contention between Florian and myself, because I
inlined a couple of functions
Inlining every once used function is just wrong. Gain from
eliminating call and function prologue and epilogue might not be
sufficient to outweigh "blobing" caller function. One optimizations
of clang is "outline" some parts of larger functions (like else
statement).
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel