[fpc-devel] Improved inlining for generic specializations

Sven Barth pascaldragon at googlemail.com
Thu May 26 21:06:16 CEST 2016


Hello together!

For those that are interested: I've improved the inlining for
specializations of generics so that now the bodies of specialized routines
(no matter whether they are normal methods of generic classes, records,
etc. or true generic routines) are inlined as long as the body of the
generic routine is already available (basically the same rules as for
inlining normal routines) (see tests/test/ugeneric102.pp for an example).
Of course there might still be cases when a routine isn't inlined, but more
often than not that should be due to reasons that would apply for normal
routines as well.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160526/2c979ca1/attachment.html>


More information about the fpc-devel mailing list