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 | 4c493d9a58ad37434f8fca467196c0a910374f25 (patch) | |
tree | edac21440ef663a2afe651c9e3b76686581746d2 /llvm/lib/Analysis/LoopPass.cpp | |
parent | 6bd44afc2fb4c7a477257a76cbd82bfb007c046f (diff) | |
download | bcm5719-llvm-4c493d9a58ad37434f8fca467196c0a910374f25.tar.gz bcm5719-llvm-4c493d9a58ad37434f8fca467196c0a910374f25.zip |
Don't call getAnalysisUsage unless -debug-pass is enabled. This speeds
up the passmgr by avoiding useless work.
llvm-svn: 54528
Diffstat (limited to 'llvm/lib/Analysis/LoopPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index 460a1b04f70..b9e5f99f07c 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/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); |