diff options
| author | vanhauser-thc <vh@thc.org> | 2023-06-24 09:30:09 +0200 |
|---|---|---|
| committer | vanhauser-thc <vh@thc.org> | 2023-06-24 09:30:09 +0200 |
| commit | edd352612da1f58832cbe84d909a8998ce4fa690 (patch) | |
| tree | 0d2c59bb8bcc0c4d512bf36ff1633395c1b32bd3 /instrumentation | |
| parent | 2106738d6b7593f18aab87d03e493ea3a86adeee (diff) | |
| download | afl++-edd352612da1f58832cbe84d909a8998ce4fa690.tar.gz | |
code format
Diffstat (limited to 'instrumentation')
| -rw-r--r-- | instrumentation/split-compares-pass.so.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/instrumentation/split-compares-pass.so.cc b/instrumentation/split-compares-pass.so.cc index 3cfd1964..6eafb332 100644 --- a/instrumentation/split-compares-pass.so.cc +++ b/instrumentation/split-compares-pass.so.cc @@ -464,8 +464,11 @@ bool SplitComparesTransform::simplifyOrEqualsCompare(CmpInst *IcmpInst, ReplaceInstWithInst(IcmpInst->getParent()->getInstList(), ii, PN); #endif if (new_pred == CmpInst::ICMP_SGT || new_pred == CmpInst::ICMP_SLT) { + simplifySignedCompare(icmp_np, M, worklist); + } + worklist.push_back(icmp_eq); return true; @@ -751,11 +754,14 @@ bool SplitComparesTransform::splitCompare(CmpInst *cmp_inst, Module &M, icmp_inv_cmp = CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_UGT, op0_high, op1_high); - } - else { + } else { + // Never gonna appen if (!be_quiet) - fprintf(stderr, "Error: split-compare: Equals or signed not removed: %d\n", pred); + fprintf(stderr, + "Error: split-compare: Equals or signed not removed: %d\n", + pred); + } #if LLVM_MAJOR >= 16 |
