summaryrefslogtreecommitdiffstats
path: root/kernel/bpf
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2018-01-20 01:24:35 +0100
committerAlexei Starovoitov <ast@kernel.org>2018-01-19 18:37:00 -0800
commitde0a444ddae61b77683c27cd390e518e33858d20 (patch)
treeb2bb3ce980577d8736bd0174aefa53b5655bf74e /kernel/bpf
parent2e4a30983b0f9b19b59e38bbf7427d7fdd480d98 (diff)
downloadop-kernel-dev-de0a444ddae61b77683c27cd390e518e33858d20.zip
op-kernel-dev-de0a444ddae61b77683c27cd390e518e33858d20.tar.gz
bpf, x86: small optimization in alu ops with imm
For the BPF_REG_0 (BPF_REG_A in cBPF, respectively), we can use the short form of the opcode as dst mapping is on eax/rax and thus save a byte per such operation. Added to add/sub/and/or/xor for 32/64 bit when K immediate is used. There may be more such low-hanging fruit to add in future as well. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud