aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/LoopPass.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-08 15:14:09 +0000
committerChris Lattner <sabre@nondot.org>2008-08-08 15:14:09 +0000
commit0dabb7e8f3e371cf0d6a9747b5bd4b555cc32c95 (patch)
tree83f0406dcedbbc9d98891ae1b3927a7386466831 /lib/Analysis/LoopPass.cpp
parente1a4eda990a765952434d39d7c14299d1d4614a5 (diff)
downloadexternal_llvm-0dabb7e8f3e371cf0d6a9747b5bd4b555cc32c95.zip
external_llvm-0dabb7e8f3e371cf0d6a9747b5bd4b555cc32c95.tar.gz
external_llvm-0dabb7e8f3e371cf0d6a9747b5bd4b555cc32c95.tar.bz2
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.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp
index 460a1b0..b9e5f99 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);