aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-10 06:22:25 +0000
committerChris Lattner <sabre@nondot.org>2007-08-10 06:22:25 +0000
commitfc23bc799d18a1316579234faaf6262cedc95bc0 (patch)
tree2cf919f21cf95d039bfb299869e39cab7d73ee5d /lib
parent417efc897b5cf984209aae66d5faa849fe2c5104 (diff)
downloadexternal_llvm-fc23bc799d18a1316579234faaf6262cedc95bc0.zip
external_llvm-fc23bc799d18a1316579234faaf6262cedc95bc0.tar.gz
external_llvm-fc23bc799d18a1316579234faaf6262cedc95bc0.tar.bz2
minor simplifications.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/PassManager.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index 16477d5..dc23a26 100644
--- a/lib/VMCore/PassManager.cpp
+++ b/lib/VMCore/PassManager.cpp
@@ -961,7 +961,7 @@ BBPassManager::runOnFunction(Function &F) {
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 @@ BBPassManager::runOnFunction(Function &F) {
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 @@ MPPassManager::runOnModule(Module &M) {
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 @@ void PMStack::dump() {
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 @@ void BasicBlockPass::assignPassManager(PMStack &PMS,
// 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.