[llvm] [ADT] Remove BitVector::next_unset_in_word (PR #156273)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 31 20:56:31 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/156273
This patch removes BitVector::next_unset_in_word as the private method
doesn't seem to be used anywhere.
>From 05e3bc5efe0e0b1e85b1646591901df60acc3e22 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sat, 30 Aug 2025 16:13:57 -0700
Subject: [PATCH] [ADT] Remove BitVector::next_unset_in_word
This patch removes BitVector::next_unset_in_word as the private method
doesn't seem to be used anywhere.
---
llvm/include/llvm/ADT/BitVector.h | 5 -----
1 file changed, 5 deletions(-)
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;
}
More information about the llvm-commits
mailing list