SmallPtrSet: Provide a more efficient implementation of swap than the default triple...
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 6 Mar 2012 20:40:02 +0000 (20:40 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 6 Mar 2012 20:40:02 +0000 (20:40 +0000)
commit2945a32ffd0bf079de1b23db12bc8a0de596a167
treea54746b6880314aa1eca572f0449adb4f491399f
parent54427e52197ecd8c748736d7bbb431f2bf65c90e
SmallPtrSet: Provide a more efficient implementation of swap than the default triple-copy std::swap.

This currently assumes that both sets have the same SmallSize to keep the implementation simple,
a limitation that can be lifted if someone cares.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152143 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallPtrSet.h
lib/Support/SmallPtrSet.cpp
unittests/ADT/SmallPtrSetTest.cpp [new file with mode: 0644]