There is no point in verifying an analysis that is never updated.
authorCameron Zwarich <zwarich@apple.com>
Tue, 18 Jan 2011 05:44:04 +0000 (05:44 +0000)
committerCameron Zwarich <zwarich@apple.com>
Tue, 18 Jan 2011 05:44:04 +0000 (05:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123743 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DominanceFrontier.h
lib/VMCore/Dominators.cpp

index 08d61867422591fcf46ac14b478d3e1226f1a4a7..d7f74af1c65c8fb85b3c32c5222e7cd4d3827ea5 100644 (file)
@@ -175,8 +175,6 @@ public:
     return false;
   }
 
-  virtual void verifyAnalysis() const;
-
   virtual void getAnalysisUsage(AnalysisUsage &AU) const {
     AU.setPreservesAll();
     AU.addRequired<DominatorTree>();
index 6e58985ba123129c79d31562d6b13fbf48d48d4a..51baac5f34dc58a8574bd0884ec1c686a1ba294e 100644 (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: