forked from OSchip/llvm-project
[GVNHoist] Remove successorDominate (NFC)
The function was introduced on Aug 25, 2016 in commit5f0d0e60d1
. Its last use was removed on Sep 13, 2017 in commitdfa8741c96
.
This commit is contained in:
parent
897c985e1e
commit
5ac37725df
|
@ -293,15 +293,6 @@ private:
|
|||
// Return true when there are exception handling in BB.
|
||||
bool hasEH(const BasicBlock *BB);
|
||||
|
||||
// Return true when a successor of BB dominates A.
|
||||
bool successorDominate(const BasicBlock *BB, const BasicBlock *A) {
|
||||
for (const BasicBlock *Succ : successors(BB))
|
||||
if (DT->dominates(Succ, A))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Return true when I1 appears before I2 in the instructions of BB.
|
||||
bool firstInBB(const Instruction *I1, const Instruction *I2) {
|
||||
assert(I1->getParent() == I2->getParent());
|
||||
|
|
Loading…
Reference in New Issue