summaryrefslogtreecommitdiff
path: root/libartbase/base/bit_vector.cc
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2020-11-14 01:28:22 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2020-11-14 02:54:26 +0000
commit2316b3a0779f3721a78681f5c70ed6624ecaebef (patch)
tree8aa4682729b839a97b2578e6cbe05ee5d35be923 /libartbase/base/bit_vector.cc
parentaeb7f9f8fe718219cfb04e0da5df62683250477d (diff)
Revert^3 "Partial LSE analysis & store removal"
This reverts commit b6837f0350ff66c13582b0e94178dd5ca283ff0a This unreverts commit fe270426c8a2a69a8f669339e83b86fbf40e25a1. This rereverts commit bb6cda60e4418c0ab557ea4090e046bed8206763. Bug: 67037140 Bug: 173120044 Reason for revert: Git-blame seems to point to the CL as cause of b/173120044. Revert during investigation. Change-Id: I46f557ce79c15f07f4e77aacded1926b192754c3
Diffstat (limited to 'libartbase/base/bit_vector.cc')
-rw-r--r--libartbase/base/bit_vector.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/libartbase/base/bit_vector.cc b/libartbase/base/bit_vector.cc
index d3cb652c0c..8e3d4c9bf7 100644
--- a/libartbase/base/bit_vector.cc
+++ b/libartbase/base/bit_vector.cc
@@ -376,31 +376,4 @@ Allocator* BitVector::GetAllocator() const {
return allocator_;
}
-void BaseBitVectorArray::Resize(size_t rows, size_t cols, bool clear) {
- DCHECK(IsExpandable());
- if (clear) {
- Clear();
- }
- cols = RoundUp(cols, BitVector::kWordBits);
- num_columns_ = cols;
- num_rows_ = rows;
- // Ensure size
- GetRawData().SetBit(num_rows_ * num_columns_ - 1);
- GetRawData().ClearBit(num_rows_ * num_columns_ - 1);
-}
-
-// In order to improve performance we do this in 4-byte blocks. Clang should be
-// able to optimize this to larger blocks if possible.
-void BaseBitVectorArray::UnionRows(size_t dest_row, size_t other) {
- DCHECK_LT(dest_row, num_rows_);
- DCHECK_LT(other, num_rows_);
- size_t block_words = num_columns_ / BitVector::kWordBits;
- uint32_t* dest =
- GetRawData().GetRawStorage() + ((dest_row * num_columns_) / BitVector::kWordBits);
- uint32_t* source = GetRawData().GetRawStorage() + ((other * num_columns_) / BitVector::kWordBits);
- for (uint32_t i = 0; i < block_words; ++i, ++dest, ++source) {
- *dest = (*dest) | (*source);
- }
-}
-
} // namespace art