advanceToLowerBound moves an iterator to the first bit set at, or after,
the given index. This can be faster than doing IntervalMap::find.
rdar://60046261
Paths
| Differential D76466
[ADT] CoalescingBitVector: Add advanceToLowerBound iterator operation ClosedPublic Authored by vsk on Mar 19 2020, 4:56 PM.
Details Summary advanceToLowerBound moves an iterator to the first bit set at, or after, rdar://60046261
Diff Detail Event Timelinevsk added a child revision: D76467: [LiveDebugValues] Speed up collectIDsForRegs, NFC.Mar 19 2020, 4:59 PM
This revision is now accepted and ready to land.Mar 20 2020, 10:31 AM Closed by commit rGa3fd1a1c744f: [ADT] CoalescingBitVector: Add advanceToLowerBound iterator operation (authored by vsk). · Explain WhyMar 20 2020, 12:29 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 251517 llvm/include/llvm/ADT/CoalescingBitVector.h
llvm/unittests/ADT/CoalescingBitVectorTest.cpp
|
The doxygen comment of find() doesn't actually say what its complexity is. Might be nice to add that information.