mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
s/DominatorTree::createNewNode/DominatorTree::addNewBlock/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -209,7 +209,7 @@ bool llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P,
|
||||
// TINode is the immediate dominator for the new node.
|
||||
//
|
||||
if (TINode) { // Don't break unreachable code!
|
||||
DomTreeNode *NewBBNode = DT->createNewNode(NewBB, TINode);
|
||||
DomTreeNode *NewBBNode = DT->addNewBlock(NewBB, TIBB);
|
||||
DomTreeNode *DestBBNode = 0;
|
||||
|
||||
// If NewBBDominatesDestBB hasn't been computed yet, do so with DT.
|
||||
|
@ -143,7 +143,7 @@ void CodeExtractor::severSplitPHINodes(BasicBlock *&Header) {
|
||||
// blocks that dominate TIBB plus the new block itself.
|
||||
if (EF) {
|
||||
BasicBlock* idom = EF->getIDom(OldPred);
|
||||
DT->createNewNode(NewBB, idom);
|
||||
DT->addNewBlock(NewBB, idom);
|
||||
EF->addNewBlock(NewBB, idom);
|
||||
|
||||
// Additionally, NewBB replaces OldPred as the immediate dominator of blocks
|
||||
|
@ -778,10 +778,9 @@ void LoopSimplify::UpdateDomInfoForRevectoredPreds(BasicBlock *NewBB,
|
||||
}
|
||||
assert(NewBBIDom && "No immediate dominator found??");
|
||||
}
|
||||
DomTreeNode *NewBBIDomNode = DT->getNode(NewBBIDom);
|
||||
|
||||
// Create the new dominator tree node... and set the idom of NewBB.
|
||||
DomTreeNode *NewBBNode = DT->createNewNode(NewBB, NewBBIDomNode);
|
||||
DomTreeNode *NewBBNode = DT->addNewBlock(NewBB, NewBBIDom);
|
||||
|
||||
// If NewBB strictly dominates other blocks, then it is now the immediate
|
||||
// dominator of NewBBSucc. Update the dominator tree as appropriate.
|
||||
|
Reference in New Issue
Block a user