[Nouveau] [PATCH 2/2] nouveau: Do not add most bo's to the global bo list.

Patrick Baggett baggett.patrick at gmail.com
Wed Feb 25 09:26:48 PST 2015


>
>
> In general things don't get optimized across function calls, except in
> case of inlinable functions.
>
> And for compiler attributes it's the opposite,__attribute__((const)) and
> __attribute((pure)) can be used to indicate some kind of safety to optimize
> across functions.
>
> https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
>
> This is true, but LTO increases the compiler's ability to make these sorts
of optimizations across function calls and even C source file boundaries
without you needing to explicitly mark functions as such.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150225/7434431b/attachment-0001.html>


More information about the Nouveau mailing list