diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-01-20 01:24:35 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-01-19 18:37:00 -0800 |
commit | de0a444ddae61b77683c27cd390e518e33858d20 (patch) | |
tree | b2bb3ce980577d8736bd0174aefa53b5655bf74e /fs/readdir.c | |
parent | 2e4a30983b0f9b19b59e38bbf7427d7fdd480d98 (diff) |
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 'fs/readdir.c')
0 files changed, 0 insertions, 0 deletions