[all-commits] [llvm/llvm-project] d2b4a6: [BPF] Fix a bug in BPFAdjustOpt pass for icmp tran...
yonghong-song via All-commits
all-commits at lists.llvm.org
Thu Mar 17 09:25:41 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d2b4a675a8f9895eb06eec8a963c11a84d04ed03
https://github.com/llvm/llvm-project/commit/d2b4a675a8f9895eb06eec8a963c11a84d04ed03
Author: Yonghong Song <yhs at fb.com>
Date: 2022-03-17 (Thu, 17 Mar 2022)
Changed paths:
M llvm/lib/Target/BPF/BPFAdjustOpt.cpp
A llvm/test/CodeGen/BPF/adjust-opt-icmp5.ll
Log Message:
-----------
[BPF] Fix a bug in BPFAdjustOpt pass for icmp transformation
When checking a bcc issue related to bcc tool inject.py,
I found a bug in BPFAdjustOpt pass for icmp transformation,
caused by typo's. For the following condition:
Cond2Op != ICmpInst::ICMP_SLT && Cond1Op != ICmpInst::ICMP_SLE
it should be
Cond2Op != ICmpInst::ICMP_SLT && Cond2Op != ICmpInst::ICMP_SLE
This patch fixed the problem and a test case is added.
Differential Revision: https://reviews.llvm.org/D121883
More information about the All-commits
mailing list