diff options
| author | Andrii Nakryiko <andrii@kernel.org> | 2023-11-11 17:05:58 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2023-11-15 12:03:41 -0800 |
| commit | 96381879a370425a30b810906946f64c0726450e (patch) | |
| tree | 39e967f766aef108d7709c951218a98a7bd5dbbb /scripts/generate_rust_analyzer.py | |
| parent | 67420501e8681ae18f9f0ea0a69cd2f432100e70 (diff) | |
bpf: generalize is_scalar_branch_taken() logic
Generalize is_branch_taken logic for SCALAR_VALUE register to handle
cases when both registers are not constants. Previously supported
<range> vs <scalar> cases are a natural subset of more generic <range>
vs <range> set of cases.
Generalized logic relies on straightforward segment intersection checks.
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/20231112010609.848406-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions
