aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/IntEqClasses.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-21 00:48:17 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-21 00:48:17 +0000
commitb907e8a2d40dc546f21ff7e122a80b121653851a (patch)
treeaae2803590bfa885b3e4aa4b99b3b6ca31c73bc9 /lib/Support/IntEqClasses.cpp
parent2a6899c5391a9aada02686dee29f9b56218ed1d3 (diff)
Use IntEqClasses to compute connected components of live intervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/IntEqClasses.cpp')
-rw-r--r--lib/Support/IntEqClasses.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/IntEqClasses.cpp b/lib/Support/IntEqClasses.cpp
index a14a26d442..11344956e4 100644
--- a/lib/Support/IntEqClasses.cpp
+++ b/lib/Support/IntEqClasses.cpp
@@ -24,6 +24,7 @@ using namespace llvm;
void IntEqClasses::grow(unsigned N) {
assert(NumClasses == 0 && "grow() called after compress().");
+ EC.reserve(N);
while (EC.size() < N)
EC.push_back(EC.size());
}