This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Compile AVX libm functions with -mavx


On Tue, Oct 2, 2012 at 7:35 AM, Andreas Jaeger <aj@suse.com> wrote:
> On 10/02/2012 03:53 PM, H.J. Lu wrote:
>>
>> Hi,
>>
>> This patch compiles AVX libm functions with -mavx.  It reduces text size
>> of libm.so by about 1%:
>>
>> Before
>>
>> gnu-tools-1:pts/4[17]> size libm.so
>>     text           data     bss     dec     hex filename
>> 1027977     876      72 1028925   fb33d libm.so
>>
>> After:
>>
>> gnu-tools-1:pts/3[25]> size libm.so
>>     text           data     bss     dec     hex filename
>> 1018017     876      72 1018965   f8c55 libm.so
>>
>> Tested on AVX machine.  OK for trunk?
>
>
> textsize is a good metric but what about performance?

I would posit that text size reductions are from fewer move
instructions due to AVX's 3-operand form. As such, performance should
be better.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]