Skip to content

Commit

Permalink
typoes
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113647 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ggreif committed Sep 10, 2010
1 parent 401e2d3 commit e2d5004
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions include/llvm/Analysis/Dominators.h
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ class DominatorTreeBase : public DominatorBase<NodeT> {
}

/// 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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/CodeGen/MachineDominators.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions lib/Transforms/Scalar/LoopIndexSplit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/Transforms/Utils/BasicBlockUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions lib/Transforms/Utils/CodeExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e2d5004

Please sign in to comment.