[RFC] Clean up SSE variable shifts

Richard Henderson rth@twiddle.net
Mon Aug 23 14:00:00 GMT 2010


On 08/21/2010 03:27 PM, Lu, Hongjiu wrote:
>>
>>> What is the performance impact of extra function call
>>> vs. multiple copies of the same jump table?
>>
>> I don't know.  I would hope that an indirect call and return
>> would be just as predictable as an indirect jump and branch.
>>
>> Fancy helping me benchmark?
>>
> 
> Sure. Send me a patch. I will run some benchmarks.

And for good measure, here's a third patch which implements a
variable shift via pshufb.  Which means we avoid any control
mis-prediction in favor of a data load stall.  Whether this is 
better or worse given a large insn re-order buffer, I have
no idea.  Something else to test.


r~
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: z
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20100823/9f426609/attachment.ksh>


More information about the Libc-alpha mailing list