[llvm] bed3c7e - [ADT] Remove BitVector::next_unset_in_word (#156273)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 31 23:43:38 PDT 2025


Author: Kazu Hirata
Date: 2025-08-31T23:43:35-07:00
New Revision: bed3c7e74251d463ce724fae329ae106967e4728

URL: https://github.com/llvm/llvm-project/commit/bed3c7e74251d463ce724fae329ae106967e4728
DIFF: https://github.com/llvm/llvm-project/commit/bed3c7e74251d463ce724fae329ae106967e4728.diff

LOG: [ADT] Remove BitVector::next_unset_in_word (#156273)

This patch removes BitVector::next_unset_in_word as the private method
doesn't seem to be used anywhere.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/BitVector.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/BitVector.h b/llvm/include/llvm/ADT/BitVector.h
index 1fbce1a95fb76..72da2343fae13 100644
--- a/llvm/include/llvm/ADT/BitVector.h
+++ b/llvm/include/llvm/ADT/BitVector.h
@@ -769,11 +769,6 @@ class BitVector {
     std::fill(Bits.begin() + NumWords - Count, Bits.begin() + NumWords, 0);
   }
 
-  int next_unset_in_word(int WordIndex, BitWord Word) const {
-    unsigned Result = WordIndex * BITWORD_SIZE + llvm::countr_one(Word);
-    return Result < size() ? Result : -1;
-  }
-
   unsigned NumBitWords(unsigned S) const {
     return (S + BITWORD_SIZE-1) / BITWORD_SIZE;
   }


        


More information about the llvm-commits mailing list