[PATCH] powerpc64: strrchr optimization for power8

Carlos O'Donell carlos@redhat.com
Mon Feb 20 16:06:00 GMT 2017


On 02/20/2017 11:01 AM, Rajalakshmi Srinivasaraghavan wrote:
> 
> 
> On 02/20/2017 07:12 PM, Carlos O'Donell wrote:
>> On 02/14/2017 06:05 AM, Rajalakshmi Srinivasaraghavan wrote:
>>> P7 code is used for <=32B strings and for > 32B vectorized loops are used.
>>> This shows as an average 25% improvement depending on the position of search
>>> character.  The performance is same for shorter strings.
>>> Tested on ppc64 and ppc64le.
>> What did you use to test the 25% improvement?
> 
> This improvement is seen when compared to power7. Benchtest is
> modified to use length from 0 to 400  to find the average for
> different lengths.
 
Could you post your modifications for review an explain your
process in a little more detail. I'm curious about the changes
you made.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list