Re: [PATCH net-next] x86: bpf_jit: small optimization in emit_bpf_tail_call()

From
Daniel Borkmann <daniel@iogearbox.net>
Date
2017-08-31 12:37:33
Reply to
Eric Dumazet, 2017-08-31
On 08/31/2017 01:53 PM, Eric Dumazet wrote:
From: Eric Dumazet <redacted>

Saves 4 bytes replacing following instructions :

lea rax, [rsi + rdx * 8 + offsetof(...)]
mov rax, qword ptr [rax]
cmp rax, 0

by :

mov rax, [rsi + rdx * 8 + offsetof(...)]
test rax, rax

Signed-off-by: Eric Dumazet <redacted>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
LGTM, thanks Eric!

Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Thread (4 messages) 4 messages, 4 authors, 2017-08-31
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