typoes
authorGabor Greif <ggreif@gmail.com>
Fri, 10 Sep 2010 22:25:58 +0000 (22:25 +0000)
committerGabor Greif <ggreif@gmail.com>
Fri, 10 Sep 2010 22:25:58 +0000 (22:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113647 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Dominators.h
include/llvm/CodeGen/MachineDominators.h
lib/Transforms/Scalar/LoopIndexSplit.cpp
lib/Transforms/Utils/BasicBlockUtils.cpp
lib/Transforms/Utils/CodeExtractor.cpp

index 73c6e6286b5b23bda1ccc15f02a4f7acee60914a..57a5b2a6f4103a6aaf63286e95d3cda60137d921 100644 (file)
@@ -509,7 +509,7 @@ public:
   }
 
   /// 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<NodeT> *Node = getNode(BB);
@@ -807,7 +807,7 @@ public:
   }
 
   /// 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);
index 48695d500b191e4608916a768b060520ddd7900d..ab944a2335f7618e5592199b309572b8ca8aa89f 100644 (file)
@@ -145,7 +145,7 @@ public:
   }
   
   /// 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);
index a4336743a8f010e1b0156eae4242813496b82ef9..fbb57804c40166bb3e005738491b9e0d88089e79 100644 (file)
@@ -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<Value *, Value *> InverseMap;
index 093083a630cf3df2bd8c3c6b452ee0170a7808b6..b8aa9f0eb70d87c9bdf64096fbb882a1fc796a6d 100644 (file)
@@ -327,7 +327,7 @@ BasicBlock *llvm::SplitBlock(BasicBlock *Old, Instruction *SplitPt, Pass *P) {
       L->addBasicBlockToLoop(New, LI->getBase());
 
   if (DominatorTree *DT = P->getAnalysisIfAvailable<DominatorTree>()) {
-    // 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<DomTreeNode *> Children;
     for (DomTreeNode::iterator I = OldNode->begin(), E = OldNode->end();
index b51f751e13171e1cd757af90d5caeea763624d12..e6337722c8bd65ea39134e8def3ba854ea16b159 100644 (file)
@@ -186,8 +186,8 @@ void CodeExtractor::splitReturnBlocks() {
     if (ReturnInst *RI = dyn_cast<ReturnInst>((*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<DomTreeNode*, 8> Children;
         for (DomTreeNode::iterator DI = OldNode->begin(), DE = OldNode->end();