about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-09-01 19:51:53 +0200
committerhexcoder- <heiko@hexco.de>2020-09-01 19:51:53 +0200
commit4538f689ede6743d097c85ded2fdcb4f9663020b (patch)
tree6726c28d5b1c346e8f1cf5c347d95c56c23aa968
parentca0105ddf6bd3c28a7ea4f9a963f820b1eb55ac6 (diff)
downloadafl++-4538f689ede6743d097c85ded2fdcb4f9663020b.tar.gz
split-compares-pass: bugfix add missing instrument_file filtering in some places
-rw-r--r--llvm_mode/split-compares-pass.so.cc6
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) {