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/LoopPass.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/LoopPass.cpp')
-rw-r--r-- | lib/Analysis/LoopPass.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 460a1b04f7..b9e5f99f07 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -214,11 +214,9 @@ bool LPPassManager::runOnFunction(Function &F) { for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) { Pass *P = getContainedPass(Index); - AnalysisUsage AnUsage; - P->getAnalysisUsage(AnUsage); dumpPassInfo(P, EXECUTION_MSG, ON_LOOP_MSG, ""); - dumpAnalysisSetInfo("Required", P, AnUsage.getRequiredSet()); + dumpRequiredSet(P); initializeAnalysisImpl(P); @@ -230,7 +228,7 @@ bool LPPassManager::runOnFunction(Function &F) { if (Changed) dumpPassInfo(P, MODIFICATION_MSG, ON_LOOP_MSG, ""); - dumpAnalysisSetInfo("Preserved", P, AnUsage.getPreservedSet()); + dumpPreservedSet(P); verifyPreservedAnalysis(LP); removeNotPreservedAnalysis(P); |