[llvm-commits] [llvm] r153951 - /llvm/trunk/lib/VMCore/Metadata.cpp
Bill Wendling
isanbard at gmail.com
Tue Apr 3 04:19:21 PDT 2012
Author: void
Date: Tue Apr 3 06:19:21 2012
New Revision: 153951
URL: http://llvm.org/viewvc/llvm-project?rev=153951&view=rev
Log:
The speedup doesn't appear to have been from this, but was an anomaly of my testing machine.
Modified:
llvm/trunk/lib/VMCore/Metadata.cpp
Modified: llvm/trunk/lib/VMCore/Metadata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Metadata.cpp?rev=153951&r1=153950&r2=153951&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Metadata.cpp (original)
+++ llvm/trunk/lib/VMCore/Metadata.cpp Tue Apr 3 06:19:21 2012
@@ -553,7 +553,6 @@
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.
More information about the llvm-commits
mailing list