aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectOptimize.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-11-30 10:21:10 +0100
committerGitHub <noreply@github.com>2024-11-30 10:21:10 +0100
commita8a494faab8af60754c4647dbb7b24bc86a80aab (patch)
treee3abf58005cf396f0fed14615b380a6d23e913c6 /llvm/lib/CodeGen/SelectOptimize.cpp
parenta348f223cab54b21a7b1c38dec7bc6aa2f81c949 (diff)
downloadllvm-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