[llvm] [ADT] Remove BitVector::next_unset_in_word (PR #156273)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 31 20:57:03 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-adt
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
This patch removes BitVector::next_unset_in_word as the private method
doesn't seem to be used anywhere.
---
Full diff: https://github.com/llvm/llvm-project/pull/156273.diff
1 Files Affected:
- (modified) llvm/include/llvm/ADT/BitVector.h (-5)
``````````diff
diff --git a/llvm/include/llvm/ADT/BitVector.h b/llvm/include/llvm/ADT/BitVector.h
index 70de4c239c1c7..cb5b4e496d3a8 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;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/156273
More information about the llvm-commits
mailing list