diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-08 15:14:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-08 15:14:09 +0000 |
commit | 0dabb7e8f3e371cf0d6a9747b5bd4b555cc32c95 (patch) | |
tree | 83f0406dcedbbc9d98891ae1b3927a7386466831 /lib/Analysis/IPA/CallGraphSCCPass.cpp | |
parent | e1a4eda990a765952434d39d7c14299d1d4614a5 (diff) |
Don't call getAnalysisUsage unless -debug-pass is enabled. This speeds
up the passmgr by avoiding useless work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/CallGraphSCCPass.cpp')
-rw-r--r-- | lib/Analysis/IPA/CallGraphSCCPass.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp index 112f9c2e5d..4a0e4cfe05 100644 --- a/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -91,11 +91,9 @@ bool CGPassManager::runOnModule(Module &M) { // Run all passes on current SCC for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) { Pass *P = getContainedPass(Index); - AnalysisUsage AnUsage; - P->getAnalysisUsage(AnUsage); dumpPassInfo(P, EXECUTION_MSG, ON_CG_MSG, ""); - dumpAnalysisSetInfo("Required", P, AnUsage.getRequiredSet()); + dumpRequiredSet(P); initializeAnalysisImpl(P); @@ -120,7 +118,7 @@ bool CGPassManager::runOnModule(Module &M) { if (Changed) dumpPassInfo(P, MODIFICATION_MSG, ON_CG_MSG, ""); - dumpAnalysisSetInfo("Preserved", P, AnUsage.getPreservedSet()); + dumpPreservedSet(P); verifyPreservedAnalysis(P); removeNotPreservedAnalysis(P); |