Daniel Borkmann 6205b9cf20 bpf: don't emit mov A,A on return
While debugging with bpf_jit_disasm I noticed emissions of 'mov %eax,%eax',
and found that this comes from BPF_RET | BPF_A translations from classic
BPF. Emitting this is unnecessary as BPF_REG_A is mapped into BPF_REG_0
already, therefore only emit a mov when immediates are used as return value.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-02-21 22:07:11 -05:00
..
2016-02-16 20:21:48 -05:00
2016-02-16 20:21:48 -05:00
2016-02-21 22:07:11 -05:00
2015-04-02 14:04:59 -04:00
2016-02-21 22:00:28 -05:00
2016-02-16 20:21:48 -05:00
2015-05-17 23:41:11 -04:00
2015-11-22 11:54:10 -05:00
2015-10-26 22:24:22 -07:00
2015-10-08 05:26:35 -07:00