[PATCH] D76465: [ADT] CoalescingBitVector: Avoid initial heap allocation, NFC

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 19 17:00:22 PDT 2020


vsk created this revision.
vsk added reviewers: aprantl, jmorse, aemerson.
vsk added a project: debug-info.
Herald added subscribers: dexonsmith, hiraditya.
Herald added a reviewer: aartbik.

Avoid making a heap allocation when constructing a CoalescingBitVector.

This reduces time spent in LiveDebugValues when compiling sqlite3 by
700ms (0.5% of the total User Time).

rdar://60046261


https://reviews.llvm.org/D76465

Files:
  llvm/include/llvm/ADT/CoalescingBitVector.h
  llvm/lib/CodeGen/LiveDebugValues.cpp
  llvm/unittests/ADT/CoalescingBitVectorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76465.251505.patch
Type: text/x-patch
Size: 10061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200320/7d78c75a/attachment.bin>


More information about the llvm-commits mailing list