There is no point in verifying an analysis that is never updated.

llvm-svn: 123743
This commit is contained in:
Cameron Zwarich 2011-01-18 05:44:04 +00:00
parent 16b0ec59f2
commit ce25e88218
2 changed files with 0 additions and 13 deletions

View File

@ -175,8 +175,6 @@ public:
return false;
}
virtual void verifyAnalysis() const;
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
AU.addRequired<DominatorTree>();

View File

@ -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: