There is no point in verifying an analysis that is never updated.
llvm-svn: 123743
This commit is contained in:
parent
16b0ec59f2
commit
ce25e88218
|
@ -175,8 +175,6 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
virtual void verifyAnalysis() const;
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<DominatorTree>();
|
||||
|
|
|
@ -120,17 +120,6 @@ INITIALIZE_PASS_DEPENDENCY(DominatorTree)
|
|||
INITIALIZE_PASS_END(DominanceFrontier, "domfrontier",
|
||||
"Dominance Frontier Construction", true, true)
|
||||
|
||||
void DominanceFrontier::verifyAnalysis() const {
|
||||
if (!VerifyDomInfo) return;
|
||||
|
||||
DominatorTree &DT = getAnalysis<DominatorTree>();
|
||||
|
||||
DominanceFrontier OtherDF;
|
||||
const std::vector<BasicBlock*> &DTRoots = DT.getRoots();
|
||||
OtherDF.calculate(DT, DT.getNode(DTRoots[0]));
|
||||
assert(!compare(OtherDF) && "Invalid DominanceFrontier info!");
|
||||
}
|
||||
|
||||
namespace {
|
||||
class DFCalculateWorkObject {
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue