This is an archive of the discontinued LLVM Phabricator instance.

[BPF] Fix a bug in BPFAdjustOpt pass for icmp transformation
ClosedPublic

Authored by yonghong-song on Mar 17 2022, 12:06 AM.

Details

Summary

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

The problem is then fixed and a test case is added.

Diff Detail

Event Timeline

yonghong-song created this revision.Mar 17 2022, 12:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 12:06 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
yonghong-song requested review of this revision.Mar 17 2022, 12:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 12:06 AM
ast accepted this revision.Mar 17 2022, 8:30 AM
This revision is now accepted and ready to land.Mar 17 2022, 8:30 AM