From: Chandler Carruth Date: Fri, 14 Aug 2015 02:16:12 +0000 (+0000) Subject: [PM/AA] Delete two pointlessly overridden methods on the AA interface by X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=c269c3d55528006aa93c036f5f294ef020b9b4be;ds=sidebyside [PM/AA] Delete two pointlessly overridden methods on the AA interface by 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 --- diff --git a/include/llvm/Analysis/AliasAnalysisCounter.h b/include/llvm/Analysis/AliasAnalysisCounter.h index 68c9069fd42..8a7621ffab9 100644 --- a/include/llvm/Analysis/AliasAnalysisCounter.h +++ b/include/llvm/Analysis/AliasAnalysisCounter.h @@ -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().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); - } }; //===--------------------------------------------------------------------===//