]> granicus.if.org Git - clang/commit
Shrink SmallPtrSet. It gets swapped a lot which copies the whole small part.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 23 Feb 2013 16:56:22 +0000 (16:56 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 23 Feb 2013 16:56:22 +0000 (16:56 +0000)
commitf3f6231fb5a86c98aa88eba7dbf2df87cc141e0d
treef709bc4bc89e5d9a1a858144927d1a68a3db810a
parentb063ef0222a99ee168631afa7b5a882d494b8fde
Shrink SmallPtrSet. It gets swapped a lot which copies the whole small part.

Testing shows that it's empty in >99% of the cases and I couldn't find a case
where it contained more than 2 elements.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175967 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h