mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 22:00:58 +00:00
typoes
llvm-svn: 113647
This commit is contained in:
parent
da0804f6a1
commit
dfe6dea95f
@ -509,7 +509,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// eraseNode - Removes a node from the dominator tree. Block must not
|
/// 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.
|
/// children list. Deletes dominator node associated with basic block BB.
|
||||||
void eraseNode(NodeT *BB) {
|
void eraseNode(NodeT *BB) {
|
||||||
DomTreeNodeBase<NodeT> *Node = getNode(BB);
|
DomTreeNodeBase<NodeT> *Node = getNode(BB);
|
||||||
@ -807,7 +807,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// eraseNode - Removes a node from the dominator tree. Block must not
|
/// 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.
|
/// children list. Deletes dominator node associated with basic block BB.
|
||||||
inline void eraseNode(BasicBlock *BB) {
|
inline void eraseNode(BasicBlock *BB) {
|
||||||
DT->eraseNode(BB);
|
DT->eraseNode(BB);
|
||||||
|
@ -145,7 +145,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// eraseNode - Removes a node from the dominator tree. Block must not
|
/// 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.
|
/// children list. Deletes dominator node associated with basic block BB.
|
||||||
inline void eraseNode(MachineBasicBlock *BB) {
|
inline void eraseNode(MachineBasicBlock *BB) {
|
||||||
DT->eraseNode(BB);
|
DT->eraseNode(BB);
|
||||||
|
@ -617,8 +617,8 @@ bool LoopIndexSplit::updateLoopIterationSpace() {
|
|||||||
if (Op1->use_empty())
|
if (Op1->use_empty())
|
||||||
Op1->eraseFromParent();
|
Op1->eraseFromParent();
|
||||||
|
|
||||||
// Update domiantor info. Now, ExitingBlock has only one predecessor,
|
// Update dominator info. Now, ExitingBlock has only one predecessor,
|
||||||
// ExitingBBPred, and it is ExitingBlock's immediate domiantor.
|
// ExitingBBPred, and it is ExitingBlock's immediate dominator.
|
||||||
DT->changeImmediateDominator(ExitingBlock, ExitingBBPred);
|
DT->changeImmediateDominator(ExitingBlock, ExitingBBPred);
|
||||||
|
|
||||||
BasicBlock *ExitBlock = ExitingBlock->getTerminator()->getSuccessor(1);
|
BasicBlock *ExitBlock = ExitingBlock->getTerminator()->getSuccessor(1);
|
||||||
@ -1040,7 +1040,7 @@ bool LoopIndexSplit::splitLoop() {
|
|||||||
|
|
||||||
// [*] Update BLoop's header phi nodes. Remove incoming PHINode's from
|
// [*] Update BLoop's header phi nodes. Remove incoming PHINode's from
|
||||||
// original loop's preheader. Add incoming PHINode values 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.
|
// Collect inverse map of Header PHINodes.
|
||||||
DenseMap<Value *, Value *> InverseMap;
|
DenseMap<Value *, Value *> InverseMap;
|
||||||
|
@ -327,7 +327,7 @@ BasicBlock *llvm::SplitBlock(BasicBlock *Old, Instruction *SplitPt, Pass *P) {
|
|||||||
L->addBasicBlockToLoop(New, LI->getBase());
|
L->addBasicBlockToLoop(New, LI->getBase());
|
||||||
|
|
||||||
if (DominatorTree *DT = P->getAnalysisIfAvailable<DominatorTree>()) {
|
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);
|
DomTreeNode *OldNode = DT->getNode(Old);
|
||||||
std::vector<DomTreeNode *> Children;
|
std::vector<DomTreeNode *> Children;
|
||||||
for (DomTreeNode::iterator I = OldNode->begin(), E = OldNode->end();
|
for (DomTreeNode::iterator I = OldNode->begin(), E = OldNode->end();
|
||||||
|
@ -186,8 +186,8 @@ void CodeExtractor::splitReturnBlocks() {
|
|||||||
if (ReturnInst *RI = dyn_cast<ReturnInst>((*I)->getTerminator())) {
|
if (ReturnInst *RI = dyn_cast<ReturnInst>((*I)->getTerminator())) {
|
||||||
BasicBlock *New = (*I)->splitBasicBlock(RI, (*I)->getName()+".ret");
|
BasicBlock *New = (*I)->splitBasicBlock(RI, (*I)->getName()+".ret");
|
||||||
if (DT) {
|
if (DT) {
|
||||||
// Old dominates New. New node domiantes all other nodes dominated
|
// Old dominates New. New node dominates all other nodes dominated
|
||||||
//by Old.
|
// by Old.
|
||||||
DomTreeNode *OldNode = DT->getNode(*I);
|
DomTreeNode *OldNode = DT->getNode(*I);
|
||||||
SmallVector<DomTreeNode*, 8> Children;
|
SmallVector<DomTreeNode*, 8> Children;
|
||||||
for (DomTreeNode::iterator DI = OldNode->begin(), DE = OldNode->end();
|
for (DomTreeNode::iterator DI = OldNode->begin(), DE = OldNode->end();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user