SmallPtrSet: Inline the part of insert_imp in the small case
authorMatthias Braun <matze@braunis.de>
Wed, 27 Jan 2016 04:20:24 +0000 (04:20 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 27 Jan 2016 04:20:24 +0000 (04:20 +0000)
commit4962bd737feb27bb74d9ac6639a25719ec0f1f79
tree59062fbaf01a11b39f792e6bfce1b15e54375154
parent2a60c4424cf0c5269a4b21ab28c64db35347fcc4
SmallPtrSet: Inline the part of insert_imp in the small case

Most of the time we only hit the small case, so it is beneficial to pull
it out of the insert_imp() implementation. This improves compile time
at least for non-LTO builds.

Differential Revision: http://reviews.llvm.org/D16619

llvm-svn: 258908
llvm/include/llvm/ADT/SmallPtrSet.h
llvm/lib/Support/SmallPtrSet.cpp