Thread (4 messages) 4 messages, 4 authors, 2017-08-31

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

From: Alexei Starovoitov <hidden>
Date: 2017-08-31 14:38:20

On Thu, Aug 31, 2017 at 04:53:42AM -0700, Eric Dumazet wrote:
From: Eric Dumazet <edumazet@google.com>

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 <edumazet@google.com>
Nicely spotted. Much appreciate it!
Acked-by: Alexei Starovoitov <ast@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help