From e2d50046fd29cb3eb2483e080cb7c39b460fbb19 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Fri, 10 Sep 2010 22:25:58 +0000 Subject: [PATCH] typoes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113647 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/Dominators.h | 4 ++-- include/llvm/CodeGen/MachineDominators.h | 2 +- lib/Transforms/Scalar/LoopIndexSplit.cpp | 6 +++--- lib/Transforms/Utils/BasicBlockUtils.cpp | 2 +- lib/Transforms/Utils/CodeExtractor.cpp | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 73c6e6286b5b..57a5b2a6f410 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -509,7 +509,7 @@ class DominatorTreeBase : public DominatorBase { } /// eraseNode - Removes a node from the dominator tree. Block must not - /// domiante any other blocks. Removes node from its immediate dominator's + /// dominate any other blocks. Removes node from its immediate dominator's /// children list. Deletes dominator node associated with basic block BB. void eraseNode(NodeT *BB) { DomTreeNodeBase *Node = getNode(BB); @@ -807,7 +807,7 @@ class DominatorTree : public FunctionPass { } /// eraseNode - Removes a node from the dominator tree. Block must not - /// domiante any other blocks. Removes node from its immediate dominator's + /// dominate any other blocks. Removes node from its immediate dominator's /// children list. Deletes dominator node associated with basic block BB. inline void eraseNode(BasicBlock *BB) { DT->eraseNode(BB); diff --git a/include/llvm/CodeGen/MachineDominators.h b/include/llvm/CodeGen/MachineDominators.h index 48695d500b19..ab944a2335f7 100644 --- a/include/llvm/CodeGen/MachineDominators.h +++ b/include/llvm/CodeGen/MachineDominators.h @@ -145,7 +145,7 @@ class MachineDominatorTree : public MachineFunctionPass { } /// eraseNode - Removes a node from the dominator tree. Block must not - /// domiante any other blocks. Removes node from its immediate dominator's + /// dominate any other blocks. Removes node from its immediate dominator's /// children list. Deletes dominator node associated with basic block BB. inline void eraseNode(MachineBasicBlock *BB) { DT->eraseNode(BB); diff --git a/lib/Transforms/Scalar/LoopIndexSplit.cpp b/lib/Transforms/Scalar/LoopIndexSplit.cpp index a4336743a8f0..fbb57804c401 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp @@ -617,8 +617,8 @@ bool LoopIndexSplit::updateLoopIterationSpace() { if (Op1->use_empty()) Op1->eraseFromParent(); - // Update domiantor info. Now, ExitingBlock has only one predecessor, - // ExitingBBPred, and it is ExitingBlock's immediate domiantor. + // Update dominator info. Now, ExitingBlock has only one predecessor, + // ExitingBBPred, and it is ExitingBlock's immediate dominator. DT->changeImmediateDominator(ExitingBlock, ExitingBBPred); BasicBlock *ExitBlock = ExitingBlock->getTerminator()->getSuccessor(1); @@ -1040,7 +1040,7 @@ bool LoopIndexSplit::splitLoop() { // [*] Update BLoop's header phi nodes. Remove incoming PHINode's from // original loop's preheader. Add incoming PHINode values from - // ALoop's exiting block. Update BLoop header's domiantor info. + // ALoop's exiting block. Update BLoop header's dominator info. // Collect inverse map of Header PHINodes. DenseMap InverseMap; diff --git a/lib/Transforms/Utils/BasicBlockUtils.cpp b/lib/Transforms/Utils/BasicBlockUtils.cpp index 093083a630cf..b8aa9f0eb70d 100644 --- a/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -327,7 +327,7 @@ BasicBlock *llvm::SplitBlock(BasicBlock *Old, Instruction *SplitPt, Pass *P) { L->addBasicBlockToLoop(New, LI->getBase()); if (DominatorTree *DT = P->getAnalysisIfAvailable()) { - // Old dominates New. New node domiantes all other nodes dominated by Old. + // Old dominates New. New node dominates all other nodes dominated by Old. DomTreeNode *OldNode = DT->getNode(Old); std::vector Children; for (DomTreeNode::iterator I = OldNode->begin(), E = OldNode->end(); diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp index b51f751e1317..e6337722c8bd 100644 --- a/lib/Transforms/Utils/CodeExtractor.cpp +++ b/lib/Transforms/Utils/CodeExtractor.cpp @@ -186,8 +186,8 @@ void CodeExtractor::splitReturnBlocks() { if (ReturnInst *RI = dyn_cast((*I)->getTerminator())) { BasicBlock *New = (*I)->splitBasicBlock(RI, (*I)->getName()+".ret"); if (DT) { - // Old dominates New. New node domiantes all other nodes dominated - //by Old. + // Old dominates New. New node dominates all other nodes dominated + // by Old. DomTreeNode *OldNode = DT->getNode(*I); SmallVector Children; for (DomTreeNode::iterator DI = OldNode->begin(), DE = OldNode->end();