On 1 August 2017 at 17:36, Rowley, Timothy O <timothy.o.row...@intel.com> wrote:
>
>> On Jul 31, 2017, at 3:56 PM, Emil Velikov <emil.l.veli...@gmail.com> wrote:
>>
>> Hi Tim,
>>
>> Some of the inline functions seem unused.
>> Very quick search showed the following:
>>
>> InterpolateComponent
>> _simd128_abs_ps
>> _simd_abs_ps
>
> The intent of simdlib is a general purpose vector library, so some 
> functions/methods are in there for completeness sake so that when a developer 
> is using it in the future they’re not surprised by obvious holes in the api.
>
>> Might be worth cleaning things up, first?
>
> I’ve been experimenting with —print-gc-sections to see if I can prune used 
> code from the tree, but real unused functions seem to get lost in the inline 
> functions/methods defined in headers which the linker is reaping as expected.
>
Indeed --print-gc-sections does not work with inlines. One needs to
drop the inline keyword - be that sed out, or define it to a noop.
Just an idea for a rainy day.

-Emil
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to