Skip to content

Commit 5ac3772

Browse files
[GVNHoist] Remove successorDominate (NFC)
The function was introduced on Aug 25, 2016 in commit 5f0d0e6. Its last use was removed on Sep 13, 2017 in commit dfa8741.
1 parent 897c985 commit 5ac3772

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

llvm/lib/Transforms/Scalar/GVNHoist.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,6 @@ class GVNHoist {
293293
// Return true when there are exception handling in BB.
294294
bool hasEH(const BasicBlock *BB);
295295

296-
// Return true when a successor of BB dominates A.
297-
bool successorDominate(const BasicBlock *BB, const BasicBlock *A) {
298-
for (const BasicBlock *Succ : successors(BB))
299-
if (DT->dominates(Succ, A))
300-
return true;
301-
302-
return false;
303-
}
304-
305296
// Return true when I1 appears before I2 in the instructions of BB.
306297
bool firstInBB(const Instruction *I1, const Instruction *I2) {
307298
assert(I1->getParent() == I2->getParent());

0 commit comments

Comments
 (0)