[llvm] r293129 - [libFuzzer] remove a bit of stale code

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 17:45:55 PST 2017


Author: kcc
Date: Wed Jan 25 19:45:54 2017
New Revision: 293129

URL: http://llvm.org/viewvc/llvm-project?rev=293129&view=rev
Log:
[libFuzzer] remove a bit of stale code

Modified:
    llvm/trunk/lib/Fuzzer/FuzzerInternal.h
    llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp

Modified: llvm/trunk/lib/Fuzzer/FuzzerInternal.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerInternal.h?rev=293129&r1=293128&r2=293129&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerInternal.h (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerInternal.h Wed Jan 25 19:45:54 2017
@@ -41,7 +41,6 @@ public:
       CallerCalleeCoverage = 0;
       CounterBitmapBits = 0;
       CounterBitmap.clear();
-      VPMap.Reset();
     }
 
     size_t BlockCoverage;
@@ -49,7 +48,6 @@ public:
     // Precalculated number of bits in CounterBitmap.
     size_t CounterBitmapBits;
     std::vector<uint8_t> CounterBitmap;
-    ValueBitMap VPMap;
   };
 
   Fuzzer(UserCallback CB, InputCorpus &Corpus, MutationDispatcher &MD,

Modified: llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp?rev=293129&r1=293128&r2=293129&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp Wed Jan 25 19:45:54 2017
@@ -354,8 +354,6 @@ void Fuzzer::PrintStats(const char *Wher
   Printf("#%zd\t%s", TotalNumberOfRuns, Where);
   if (MaxCoverage.BlockCoverage)
     Printf(" cov: %zd", MaxCoverage.BlockCoverage);
-  if (size_t N = MaxCoverage.VPMap.GetNumBitsSinceLastMerge())
-    Printf(" vp: %zd", N);
   if (size_t N = TPC.GetTotalPCCoverage())
     Printf(" cov: %zd", N);
   if (auto TB = MaxCoverage.CounterBitmapBits)
@@ -509,8 +507,6 @@ size_t Fuzzer::RunOne(const uint8_t *Dat
     Res = NumFeatures;
 
   if (!TPC.UsingTracePcGuard()) {
-    if (TPC.UpdateValueProfileMap(&MaxCoverage.VPMap))
-      Res = 1;
     if (!Res && RecordMaxCoverage(&MaxCoverage))
       Res = 1;
   }




More information about the llvm-commits mailing list