We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897c985 commit 5ac3772Copy full SHA for 5ac3772
llvm/lib/Transforms/Scalar/GVNHoist.cpp
@@ -293,15 +293,6 @@ class GVNHoist {
293
// Return true when there are exception handling in BB.
294
bool hasEH(const BasicBlock *BB);
295
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
305
// Return true when I1 appears before I2 in the instructions of BB.
306
bool firstInBB(const Instruction *I1, const Instruction *I2) {
307
assert(I1->getParent() == I2->getParent());
0 commit comments