diff options
| author | 2026-08-17 22:07:24 +0800 | |
|---|---|---|
| committer | 2026-08-17 22:07:24 +0800 | |
| commit | 252ae40ba91c5da3a792bba7e3dc46b106dec86c (patch) | |
| tree | a420e2dcb9d5830fa2ff9f7e1e96405898deb81c /tools/lib/python | |
| parent | LoongArch: BPF: Remove redundant zext jumping in move_imm() (diff) | |
LoongArch: BPF: Remove dead move_imm() call in BPF_NEG path
The BPF_NEG operation is a unary operator that performs `dst = -dst`.
The current code unconditionally executes a move_imm() call before the
subtraction, generating useless JITted instructions to load data into
the temporary register `t1`. This `t1` register is never used anywhere
else in the entire BPF_NEG path.
Remove this dead `move_imm()` call to avoid useless instructions.
Acked-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
