[PATCH] D100387: Simplify BitVector code
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 13 07:34:39 PDT 2021
serge-sans-paille created this revision.
serge-sans-paille added reviewers: baziotis, RKSimon.
Herald added a subscriber: dexonsmith.
serge-sans-paille requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Instead of managing memory by hand, delegate it to std::vector. This makes the
code much simpler, easier to reason on 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.
https://reviews.llvm.org/D100387
Files:
llvm/include/llvm/ADT/BitVector.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100387.337145.patch
Type: text/x-patch
Size: 14074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210413/7f5d43a7/attachment.bin>
More information about the llvm-commits
mailing list