Re: [PATCH 3/3] powerpc: bpf: implement in-register swap for 64-bit endian operations

From
'Naveen N. Rao' <hidden>
Date
2017-01-13 17:52:14
Also in
linuxppc-dev
Reply to
David Laight, 2017-01-13
On 2017/01/13 05:17PM, David Laight wrote:
From: Naveen N. Rao
quoted
Sent: 13 January 2017 17:10
Generate instructions to perform the endian conversion using registers,
rather than generating two memory accesses.

The "way easier and faster" comment was obviously for the author, not
the processor.
That rather depends on whether the processor has a store to load forwarder
that will satisfy the read from the store buffer.
I don't know about ppc, but at least some x86 will do that.
Interesting - good to know that.

However, I don't think powerpc does that and in-register swap is likely 
faster regardless. Note also that gcc prefers this form at higher 
optimization levels.

Thanks,
Naveen
Thread (16 messages) 16 messages, 7 authors, last reply 2017-01-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help