[GVNHoist] Remove successorDominate (NFC)

The function was introduced on Aug 25, 2016 in commit
5f0d0e60d1.

Its last use was removed on Sep 13, 2017 in commit
dfa8741c96.
This commit is contained in:
Kazu Hirata 2020-12-18 10:29:51 -08:00
parent 897c985e1e
commit 5ac37725df
1 changed files with 0 additions and 9 deletions

View File

@ -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());