Skip to content
Commit af487c57 authored by Daniel Borkmann's avatar Daniel Borkmann
Browse files

Merge branch 'bpf-optimize-neg-sums'



Jakub Kicinski says:

====================
This set adds an optimization run to the NFP jit to turn ADD and SUB
instructions with negative immediate into the opposite operation with
a positive immediate. NFP can fit small immediates into the instructions
but it can't ever fit negative immediates. Addition of small negative
immediates is quite common in BPF programs for stack address calculations,
therefore this optimization gives us non-negligible savings in instruction
count (up to 4%).
====================

Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parents a18fda1a 7bdc97be
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment