Simplify BitVector code
authorserge-sans-paille <sguelton@redhat.com>
Tue, 13 Apr 2021 14:14:32 +0000 (16:14 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Wed, 14 Apr 2021 19:28:08 +0000 (21:28 +0200)
commit82f0e3d3ea6bf927e3397b2fb423abbc5821a30f
tree2a1afd1391a64f9ac456ba99140a7167c74b0fb6
parenta33b6471001aa8381a152c9ff49442e79d6198f8
Simplify BitVector code

Instead of managing memory by hand, delegate it to std::vector. This makes the
code much simpler, and also avoids repeatedly computing the storage size.

According to valgrind --tool=callgrind, this also slightly decreases the
instruction count, but by a small margin.

Differential Revision: https://reviews.llvm.org/D100387
llvm/include/llvm/ADT/BitVector.h