]> granicus.if.org Git - llvm/commitdiff
[libFuzzer] delete stale code
authorKostya Serebryany <kcc@google.com>
Thu, 20 Jul 2017 20:15:13 +0000 (20:15 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 20 Jul 2017 20:15:13 +0000 (20:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308663 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/FuzzerValueBitMap.h

index f11de68252d97391cf45b1e19ab80861d191bb35..13d7cbd95dd73290ac9b845996259b8b852753f2 100644 (file)
@@ -54,28 +54,6 @@ struct ValueBitMap {
 
   size_t SizeInBits() const { return kMapSizeInBits; }
 
-  size_t GetNumBitsSinceLastMerge() const { return NumBits; }
-
-  // Merges 'Other' into 'this', clears 'Other', updates NumBits,
-  // returns true if new bits were added.
-  ATTRIBUTE_TARGET_POPCNT
-  bool MergeFrom(ValueBitMap &Other) {
-    uintptr_t Res = 0;
-    size_t OldNumBits = NumBits;
-    for (size_t i = 0; i < kMapSizeInWords; i++) {
-      auto O = Other.Map[i];
-      auto M = Map[i];
-      if (O) {
-        Map[i] = (M |= O);
-        Other.Map[i] = 0;
-      }
-      if (M)
-        Res += __builtin_popcountll(M);
-    }
-    NumBits = Res;
-    return OldNumBits < NumBits;
-  }
-
   template <class Callback>
   ATTRIBUTE_NO_SANITIZE_ALL
   void ForEach(Callback CB) const {
@@ -87,7 +65,6 @@ struct ValueBitMap {
   }
 
  private:
-  size_t NumBits = 0;
   uintptr_t Map[kMapSizeInWords] __attribute__((aligned(512)));
 };