diff options
author | hexcoder- <heiko@hexco.de> | 2020-09-01 19:51:53 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-09-01 19:51:53 +0200 |
commit | 4538f689ede6743d097c85ded2fdcb4f9663020b (patch) | |
tree | 6726c28d5b1c346e8f1cf5c347d95c56c23aa968 | |
parent | ca0105ddf6bd3c28a7ea4f9a963f820b1eb55ac6 (diff) | |
download | afl++-4538f689ede6743d097c85ded2fdcb4f9663020b.tar.gz |
split-compares-pass: bugfix add missing instrument_file filtering in some places
-rw-r--r-- | llvm_mode/split-compares-pass.so.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm_mode/split-compares-pass.so.cc b/llvm_mode/split-compares-pass.so.cc index 2e57a30a..2fb90e5e 100644 --- a/llvm_mode/split-compares-pass.so.cc +++ b/llvm_mode/split-compares-pass.so.cc @@ -356,6 +356,8 @@ bool SplitComparesTransform::simplifyIntSignedness(Module &M) { * all signed compares to icomps vector */ for (auto &F : M) { + if (!isInInstrumentList(&F)) continue; + for (auto &BB : F) { for (auto &IN : BB) { @@ -542,6 +544,8 @@ size_t SplitComparesTransform::splitFPCompares(Module &M) { * functions were executed only these four predicates should exist */ for (auto &F : M) { + if (!isInInstrumentList(&F)) continue; + for (auto &BB : F) { for (auto &IN : BB) { @@ -1052,6 +1056,8 @@ size_t SplitComparesTransform::splitIntCompares(Module &M, unsigned bitw) { * were executed only these four predicates should exist */ for (auto &F : M) { + if (!isInInstrumentList(&F)) continue; + for (auto &BB : F) { for (auto &IN : BB) { |