[PM/AA] Delete two pointlessly overridden methods on the AA interface by
authorChandler Carruth <chandlerc@gmail.com>
Fri, 14 Aug 2015 02:16:12 +0000 (02:16 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 14 Aug 2015 02:16:12 +0000 (02:16 +0000)
the AA counter pass.

For pointsToConstantMemory, I think this is a "bug fix" as I think the
code as written will actually infloop if ever reached. For the
getModRefInfo, this is a no-op change but with a significantly simpler
form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245007 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/AliasAnalysisCounter.h

index 68c9069fd42da5cb001d8c37c4b01cc9d94fda10..8a7621ffab99f053933a4459bf16784e7b36ad0d 100644 (file)
@@ -43,12 +43,6 @@ public:
   /// specified pass info.
   void *getAdjustedAnalysisPointer(AnalysisID PI) override;
 
-  // FIXME: We could count these too...
-  bool pointsToConstantMemory(const MemoryLocation &Loc,
-                              bool OrLocal) override {
-    return getAnalysis<AliasAnalysis>().pointsToConstantMemory(Loc, OrLocal);
-  }
-
   // Forwarding functions: just delegate to a real AA implementation, counting
   // the number of responses...
   AliasResult alias(const MemoryLocation &LocA,
@@ -56,10 +50,6 @@ public:
 
   ModRefInfo getModRefInfo(ImmutableCallSite CS,
                            const MemoryLocation &Loc) override;
-  ModRefInfo getModRefInfo(ImmutableCallSite CS1,
-                           ImmutableCallSite CS2) override {
-    return AliasAnalysis::getModRefInfo(CS1, CS2);
-  }
 };
 
 //===--------------------------------------------------------------------===//