aboutsummaryrefslogtreecommitdiffstats
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
commitb34c71be21f257fe80f361ec5e5b95c53229a8c3 (patch)
tree038ab118fa7b942f339b87c6e5b33b7a59539f85
parent220dfe8c446d8c8937b8f260b43edd47fea76540 (diff)
downloadexternal_llvm-b34c71be21f257fe80f361ec5e5b95c53229a8c3.zip
external_llvm-b34c71be21f257fe80f361ec5e5b95c53229a8c3.tar.gz
external_llvm-b34c71be21f257fe80f361ec5e5b95c53229a8c3.tar.bz2
Fix typos in comments.
Thanks for the feedback! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52978 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/Dominators.h6
-rw-r--r--lib/Analysis/LoopPass.cpp2
-rw-r--r--lib/VMCore/PassManager.cpp10
3 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h
index 6d843c0..86a0457 100644
--- a/include/llvm/Analysis/Dominators.h
+++ b/include/llvm/Analysis/Dominators.h
@@ -308,7 +308,7 @@ public:
// FIXME: Should remove this
virtual bool runOnFunction(Function &F) { return false; }
- /// compare - Return false if the other dominator tree base maches this
+ /// compare - Return false if the other dominator tree base matches this
/// dominator tree base. Otherwise return true.
bool compare(DominatorTreeBase &Other) const {
@@ -735,7 +735,7 @@ public:
return DT->getRootNode();
}
- /// compare - Return false if the other dominator tree maches this
+ /// compare - Return false if the other dominator tree matches this
/// dominator tree. Otherwise return true.
inline bool compare(DominatorTree &Other) const {
DomTreeNode *R = getRootNode();
@@ -949,7 +949,7 @@ public:
}
/// compareDomSet - Return false if two domsets match. Otherwise
- /// return ture;
+ /// return true;
bool compareDomSet(DomSetType &DS1, const DomSetType &DS2) const {
std::set<BasicBlock *> tmpSet;
for (DomSetType::const_iterator I = DS2.begin(),
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp
index 57e8f4d..2236834 100644
--- a/lib/Analysis/LoopPass.cpp
+++ b/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/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index f98f2e1..5648e95 100644
--- a/lib/VMCore/PassManager.cpp
+++ b/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;