summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PHIElimination.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2010-12-04 20:40:15 +0000
committerCameron Zwarich <zwarich@apple.com>2010-12-04 20:40:15 +0000
commitfbd47dcc55089738e5a252cf0514dd1e24767c7b (patch)
treed2c3e50376128274faf8fac8d607a9f5c8e17a1a /llvm/lib/CodeGen/PHIElimination.cpp
parent2f489236ab078c2419fe2b2dc614b9785bf8621e (diff)
downloadbcm5719-llvm-fbd47dcc55089738e5a252cf0514dd1e24767c7b.tar.gz
bcm5719-llvm-fbd47dcc55089738e5a252cf0514dd1e24767c7b.zip
Remove PHIElimination's private copy of SkipPHIsAndLabels.
llvm-svn: 120918
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.cpp')
-rw-r--r--llvm/lib/CodeGen/PHIElimination.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp
index 03673b82418..0af0a4088f7 100644
--- a/llvm/lib/CodeGen/PHIElimination.cpp
+++ b/llvm/lib/CodeGen/PHIElimination.cpp
@@ -100,7 +100,7 @@ bool llvm::PHIElimination::EliminatePHINodes(MachineFunction &MF,
// Get an iterator to the first instruction after the last PHI node (this may
// also be the end of the basic block).
- MachineBasicBlock::iterator AfterPHIsIt = SkipPHIsAndLabels(MBB, MBB.begin());
+ MachineBasicBlock::iterator AfterPHIsIt = MBB.SkipPHIsAndLabels(MBB.begin());
while (MBB.front().isPHI())
LowerAtomicPHINode(MBB, AfterPHIsIt);
@@ -164,7 +164,7 @@ llvm::PHIElimination::FindCopyInsertPoint(MachineBasicBlock &MBB,
}
// Make sure the copy goes after any phi nodes however.
- return SkipPHIsAndLabels(MBB, InsertPoint);
+ return MBB.SkipPHIsAndLabels(InsertPoint);
}
/// LowerAtomicPHINode - Lower the PHI node at the top of the specified block,
OpenPOWER on IntegriCloud