diff options
| author | 2023-11-01 20:37:54 -0700 | |
|---|---|---|
| committer | 2023-11-09 18:58:39 -0800 | |
| commit | c31534267c180f7ed00288d239a501b554885300 (patch) | |
| tree | a3ff31f785879c916863516a1f7aac825c2b9af3 /scripts/Makefile.thinlto | |
| parent | bpf: rename is_branch_taken reg arguments to prepare for the second one (diff) | |
bpf: generalize is_branch_taken() to work with two registers
While still assuming that second register is a constant, generalize
is_branch_taken-related code to accept two registers instead of register
plus explicit constant value. This also, as a side effect, allows to
simplify check_cond_jmp_op() by unifying BPF_K case with BPF_X case, for
which we use a fake register to represent BPF_K's imm constant as
a register.
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Link: https://lore.kernel.org/r/20231102033759.2541186-13-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
