>
>
> 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.
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to