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
..
2015-11-30 14:47:33 -05:00
2016-01-21 19:36:09 +01:00
2016-02-21 22:07:11 -05:00
2016-01-07 14:31:26 -05:00
2015-11-23 14:56:15 -05:00
2016-02-21 22:00:28 -05:00
2016-02-21 22:00:28 -05:00
2016-01-04 21:48:15 -05:00
2016-02-11 09:45:24 -05:00
2016-02-07 14:06:26 -05:00
2016-02-16 20:21:48 -05:00