diff options
author | Nikita Popov <npopov@redhat.com> | 2024-11-30 10:21:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-30 10:21:10 +0100 |
commit | a8a494faab8af60754c4647dbb7b24bc86a80aab (patch) | |
tree | e3abf58005cf396f0fed14615b380a6d23e913c6 /llvm/lib/CodeGen/SelectOptimize.cpp | |
parent | a348f223cab54b21a7b1c38dec7bc6aa2f81c949 (diff) | |
download | llvm-a8a494faab8af60754c4647dbb7b24bc86a80aab.zip llvm-a8a494faab8af60754c4647dbb7b24bc86a80aab.tar.gz llvm-a8a494faab8af60754c4647dbb7b24bc86a80aab.tar.bz2 |
[SmallPtrSet] Remove SmallArray member (NFC) (#118099)
Currently SmallPtrSet stores CurArray and SmallArray, with the former
pointing to the latter in small representation. Instead, only use
CurArray and a separate IsSmall boolean.
Most of the implementation doesn't need the separate SmallArray member
-- we only need it for copy/move/swap operations, where we may switch
back from large to small representation. In those cases, we explicitly
pass down the pointer to SmallStorage.
This reduces the size of SmallPtrSet and improves compile-time.
Diffstat (limited to 'llvm/lib/CodeGen/SelectOptimize.cpp')
0 files changed, 0 insertions, 0 deletions