mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
s/DominatorTreeBase::Node/DominatorTreeBase:DomTreeNode/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37403 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -203,20 +203,20 @@ bool llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P,
|
||||
|
||||
// Should we update DominatorTree information?
|
||||
if (DominatorTree *DT = P->getAnalysisToUpdate<DominatorTree>()) {
|
||||
DominatorTree::Node *TINode = DT->getNode(TIBB);
|
||||
DominatorTree::DomTreeNode *TINode = DT->getNode(TIBB);
|
||||
|
||||
// The new block is not the immediate dominator for any other nodes, but
|
||||
// TINode is the immediate dominator for the new node.
|
||||
//
|
||||
if (TINode) { // Don't break unreachable code!
|
||||
DominatorTree::Node *NewBBNode = DT->createNewNode(NewBB, TINode);
|
||||
DominatorTree::Node *DestBBNode = 0;
|
||||
DominatorTree::DomTreeNode *NewBBNode = DT->createNewNode(NewBB, TINode);
|
||||
DominatorTree::DomTreeNode *DestBBNode = 0;
|
||||
|
||||
// If NewBBDominatesDestBB hasn't been computed yet, do so with DT.
|
||||
if (!OtherPreds.empty()) {
|
||||
DestBBNode = DT->getNode(DestBB);
|
||||
while (!OtherPreds.empty() && NewBBDominatesDestBB) {
|
||||
if (DominatorTree::Node *OPNode = DT->getNode(OtherPreds.back()))
|
||||
if (DominatorTree::DomTreeNode *OPNode = DT->getNode(OtherPreds.back()))
|
||||
NewBBDominatesDestBB = DestBBNode->dominates(OPNode);
|
||||
OtherPreds.pop_back();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user