The speedup doesn't appear to have been from this, but was an anomaly of my testing machine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-04-03 11:19:21 +00:00
parent f563fc35c8
commit 5fdf475697

View File

@ -553,7 +553,6 @@ getAllMetadataOtherThanDebugLocImpl(SmallVectorImpl<std::pair<unsigned,
const LLVMContextImpl::MDMapTy &Info =
getContext().pImpl->MetadataStore.find(this)->second;
assert(!Info.empty() && "Shouldn't have called this");
Result.reserve(Info.size());
Result.append(Info.begin(), Info.end());
// Sort the resulting array so it is stable.