[llvm-commits] [llvm] r40981 - /llvm/trunk/lib/VMCore/PassManager.cpp
Chris Lattner
sabre at nondot.org
Thu Aug 9 23:22:25 PDT 2007
Author: lattner
Date: Fri Aug 10 01:22:25 2007
New Revision: 40981
URL: http://llvm.org/viewvc/llvm-project?rev=40981&view=rev
Log:
minor simplifications.
Modified:
llvm/trunk/lib/VMCore/PassManager.cpp
Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=40981&r1=40980&r2=40981&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Fri Aug 10 01:22:25 2007
@@ -961,7 +961,7 @@
AnalysisUsage AnUsage;
BP->getAnalysisUsage(AnUsage);
- dumpPassInfo(BP, EXECUTION_MSG, ON_BASICBLOCK_MSG, (*I).getName());
+ dumpPassInfo(BP, EXECUTION_MSG, ON_BASICBLOCK_MSG, I->getName());
dumpAnalysisSetInfo("Required", BP, AnUsage.getRequiredSet());
initializeAnalysisImpl(BP);
@@ -971,15 +971,15 @@
if (TheTimeInfo) TheTimeInfo->passEnded(BP);
if (Changed)
- dumpPassInfo(BP, MODIFICATION_MSG, ON_BASICBLOCK_MSG, (*I).getName());
+ dumpPassInfo(BP, MODIFICATION_MSG, ON_BASICBLOCK_MSG, I->getName());
dumpAnalysisSetInfo("Preserved", BP, AnUsage.getPreservedSet());
verifyPreservedAnalysis(BP);
removeNotPreservedAnalysis(BP);
recordAvailableAnalysis(BP);
- removeDeadPasses(BP, (*I).getName(), ON_BASICBLOCK_MSG);
-
+ removeDeadPasses(BP, I->getName(), ON_BASICBLOCK_MSG);
}
+
return Changed |= doFinalization(F);
}
@@ -1238,8 +1238,7 @@
if (TheTimeInfo) TheTimeInfo->passEnded(MP);
if (Changed)
- dumpPassInfo(MP, MODIFICATION_MSG, ON_MODULE_MSG,
- M.getModuleIdentifier());
+ dumpPassInfo(MP, MODIFICATION_MSG, ON_MODULE_MSG, M.getModuleIdentifier());
dumpAnalysisSetInfo("Preserved", MP, AnUsage.getPreservedSet());
verifyPreservedAnalysis(MP);
@@ -1418,10 +1417,10 @@
for(std::deque<PMDataManager *>::iterator I = S.begin(),
E = S.end(); I != E; ++I) {
Pass *P = dynamic_cast<Pass *>(*I);
- printf ("%s ", P->getPassName());
+ printf("%s ", P->getPassName());
}
if (!S.empty())
- printf ("\n");
+ printf("\n");
}
/// Find appropriate Module Pass Manager in the PM Stack and
@@ -1497,9 +1496,8 @@
// Basic Pass Manager is a leaf pass manager. It does not handle
// any other pass manager.
- if (!PMS.empty()) {
+ if (!PMS.empty())
BBP = dynamic_cast<BBPassManager *>(PMS.top());
- }
// If leaf manager is not Basic Block Pass manager then create new
// basic Block Pass manager.
More information about the llvm-commits
mailing list