[PATCH] D100744: Use SmallVector instead of std::vector to manage storage of llvm::BitVector

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 20 22:33:01 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd9806334d1a4: Use SmallVector instead of std::vector to manage storage of llvm::BitVector (authored by serge-sans-paille).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100744/new/

https://reviews.llvm.org/D100744

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


Index: llvm/include/llvm/ADT/BitVector.h
===================================================================
--- llvm/include/llvm/ADT/BitVector.h
+++ llvm/include/llvm/ADT/BitVector.h
@@ -79,7 +79,7 @@
   static_assert(BITWORD_SIZE == 64 || BITWORD_SIZE == 32,
                 "Unsupported word size");
 
-  using Storage = std::vector<BitWord>;
+  using Storage = SmallVector<BitWord>;
 
   Storage Bits;  // Actual bits.
   unsigned Size; // Size of bitvector in bits.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100744.339101.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210421/d2b2e531/attachment.bin>


More information about the llvm-commits mailing list