diff options
author | Owen Anderson <resistor@mac.com> | 2022-05-08 22:34:43 -0700 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2022-05-25 23:52:44 -0700 |
commit | 1e9114984490b83d4665f12a11f84c83f50ca8f0 (patch) | |
tree | 368f6a6491f40560f8349219c0e7a16f5acb634d /llvm/lib/CodeGen/AsmPrinter/WinException.cpp | |
parent | c2eccc67ce07e9cb374eb0ecdb3038fcb8be08cd (diff) | |
download | llvm-1e9114984490b83d4665f12a11f84c83f50ca8f0.zip llvm-1e9114984490b83d4665f12a11f84c83f50ca8f0.tar.gz llvm-1e9114984490b83d4665f12a11f84c83f50ca8f0.tar.bz2 |
Replace the custom linked list in LeaderTableEntry with TinyPtrVector.
The purpose of the custom linked list was to optimize for the case
of a single-element list. It turns out that TinyPtrVector handles
the same basic scenario even better, reducing the size of
LeaderTableEntry by 33%, and requiring only log2(N) allocations
as the size of the list grows. The only downside is that we have
to store the Value's and BasicBlock's in separate vectors, which
is slightly awkward in a few cases. Fortunately that ends up being
entirely encapsulated inside helper functions.
Reviewed By: asbirlea
Differential Revision: https://reviews.llvm.org/D125205
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinException.cpp')
0 files changed, 0 insertions, 0 deletions