diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-08 05:33:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-08 05:33:04 +0000 |
commit | 45236e2919634415a70fa45f904d412afde37d6b (patch) | |
tree | f0fcde151478824cee933c6cd67b8947c509a73e /lib/VMCore/Pass.cpp | |
parent | b619af790eb4e7dd38aeef59a540d9af0bef63bb (diff) | |
download | external_llvm-45236e2919634415a70fa45f904d412afde37d6b.zip external_llvm-45236e2919634415a70fa45f904d412afde37d6b.tar.gz external_llvm-45236e2919634415a70fa45f904d412afde37d6b.tar.bz2 |
Speed up the passmgr by avoiding heap thrashing on vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Pass.cpp')
-rw-r--r-- | lib/VMCore/Pass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index d04f90c..35cbe90 100644 --- a/lib/VMCore/Pass.cpp +++ b/lib/VMCore/Pass.cpp @@ -294,8 +294,9 @@ void PassRegistrationListener::enumeratePasses() { namespace { struct GetCFGOnlyPasses : public PassRegistrationListener { - std::vector<AnalysisID> &CFGOnlyList; - GetCFGOnlyPasses(std::vector<AnalysisID> &L) : CFGOnlyList(L) {} + typedef AnalysisUsage::VectorType VectorType; + VectorType &CFGOnlyList; + GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} void passEnumerate(const PassInfo *P) { if (P->isCFGOnlyPass()) |