From b907e8a2d40dc546f21ff7e122a80b121653851a Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Tue, 21 Dec 2010 00:48:17 +0000 Subject: 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 --- lib/Support/IntEqClasses.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Support/IntEqClasses.cpp') 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()); } -- cgit v1.2.3-18-g5258