summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-07-01 19:50:56 +0000
committerDevang Patel <dpatel@apple.com>2008-07-01 19:50:56 +0000
commit67c79a49927bc2cc907f981a0e36978a25b086c3 (patch)
tree45ece3484d90085ad06c769b58fa5efb36836840 /llvm/lib
parent39a9ee48a20b400bc576d7d02551f22af6fff11c (diff)
downloadbcm5719-llvm-67c79a49927bc2cc907f981a0e36978a25b086c3.tar.gz
bcm5719-llvm-67c79a49927bc2cc907f981a0e36978a25b086c3.zip
Fix typos in comments.
Thanks for the feedback! llvm-svn: 52978
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/LoopPass.cpp2
-rw-r--r--llvm/lib/VMCore/PassManager.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp
index 57e8f4da960..2236834cd6e 100644
--- a/llvm/lib/Analysis/LoopPass.cpp
+++ b/llvm/lib/Analysis/LoopPass.cpp
@@ -234,7 +234,7 @@ bool LPPassManager::runOnFunction(Function &F) {
recordAvailableAnalysis(P);
removeDeadPasses(P, "", ON_LOOP_MSG);
- // Verify dominator information if it is available and preserved.
+ // If dominator information is available then verify the info if requested.
verifyDomInfo(*LP, F);
if (skipThisLoop)
diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp
index f98f2e16572..5648e95db54 100644
--- a/llvm/lib/VMCore/PassManager.cpp
+++ b/llvm/lib/VMCore/PassManager.cpp
@@ -42,7 +42,7 @@ enum PassDebugLevel {
None, Arguments, Structure, Executions, Details
};
-bool VerifyDomInfo = false;
+bool VerifyDomInfo = true;
static cl::opt<bool,true>
VerifyDomInfoX("verify-dom-info", cl::location(VerifyDomInfo),
cl::desc("Verify dominator info (time consuming)"));
@@ -631,7 +631,7 @@ void PMDataManager::verifyDomInfo(Pass &P, Function &F) {
cerr << "Pass " << P.getPassName() << "\n";
cerr << "----- Valid -----\n";
OtherDT.dump();
- cerr << "----- InValid -----\n";
+ cerr << "----- Invalid -----\n";
DT->dump();
assert (0 && "Invalid dominator info");
}
@@ -648,13 +648,13 @@ void PMDataManager::verifyDomInfo(Pass &P, Function &F) {
cerr << "Pass " << P.getPassName() << "\n";
cerr << "----- Valid -----\n";
OtherDF.dump();
- cerr << "----- InValid -----\n";
+ cerr << "----- Invalid -----\n";
DF->dump();
assert (0 && "Invalid dominator info");
}
}
-/// Remove Analyss not preserved by Pass P
+/// Remove Analysis not preserved by Pass P
void PMDataManager::removeNotPreservedAnalysis(Pass *P) {
AnalysisUsage AnUsage;
P->getAnalysisUsage(AnUsage);
@@ -1250,7 +1250,7 @@ bool FPPassManager::runOnFunction(Function &F) {
recordAvailableAnalysis(FP);
removeDeadPasses(FP, F.getNameStart(), ON_FUNCTION_MSG);
- // Verify dominator information if it is available and preserved.
+ // If dominator information is available then verify the info if requested.
verifyDomInfo(*FP, F);
}
return Changed;
OpenPOWER on IntegriCloud