diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-03 23:08:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-03 23:08:10 +0000 |
commit | fc419ef6a07fe6591c8f30acb1f1fe7091a311c9 (patch) | |
tree | 02c6326c09c773eec2dae0f06c3aacace7ba2241 /llvm/lib/Analysis | |
parent | 5fba6db223ce7ed7ddf1078f4af45c31fa9abd32 (diff) | |
download | bcm5719-llvm-fc419ef6a07fe6591c8f30acb1f1fe7091a311c9.tar.gz bcm5719-llvm-fc419ef6a07fe6591c8f30acb1f1fe7091a311c9.zip |
Remove PointerAccessInfo, which nothing was using.
llvm-svn: 110167
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/AliasAnalysis.cpp | 8 | ||||
-rw-r--r-- | llvm/lib/Analysis/IPA/GlobalsModRef.cpp | 12 |
2 files changed, 8 insertions, 12 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp index 2ed5f37d415..18c77350e26 100644 --- a/llvm/lib/Analysis/AliasAnalysis.cpp +++ b/llvm/lib/Analysis/AliasAnalysis.cpp @@ -113,20 +113,18 @@ AliasAnalysis::getModRefInfo(const StoreInst *S, const Value *P, unsigned Size) } AliasAnalysis::ModRefBehavior -AliasAnalysis::getModRefBehavior(ImmutableCallSite CS, - std::vector<PointerAccessInfo> *Info) { +AliasAnalysis::getModRefBehavior(ImmutableCallSite CS) { if (CS.doesNotAccessMemory()) // Can't do better than this. return DoesNotAccessMemory; - ModRefBehavior MRB = getModRefBehavior(CS.getCalledFunction(), Info); + ModRefBehavior MRB = getModRefBehavior(CS.getCalledFunction()); if (MRB != DoesNotAccessMemory && CS.onlyReadsMemory()) return OnlyReadsMemory; return MRB; } AliasAnalysis::ModRefBehavior -AliasAnalysis::getModRefBehavior(const Function *F, - std::vector<PointerAccessInfo> *Info) { +AliasAnalysis::getModRefBehavior(const Function *F) { if (F) { if (F->doesNotAccessMemory()) // Can't do better than this. diff --git a/llvm/lib/Analysis/IPA/GlobalsModRef.cpp b/llvm/lib/Analysis/IPA/GlobalsModRef.cpp index 4c2272eb7fa..769e4b177ec 100644 --- a/llvm/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/llvm/lib/Analysis/IPA/GlobalsModRef.cpp @@ -118,31 +118,29 @@ namespace { /// getModRefBehavior - Return the behavior of the specified function if /// called from the specified call site. The call site may be null in which /// case the most generic behavior of this function should be returned. - ModRefBehavior getModRefBehavior(const Function *F, - std::vector<PointerAccessInfo> *Info) { + ModRefBehavior getModRefBehavior(const Function *F) { if (FunctionRecord *FR = getFunctionInfo(F)) { if (FR->FunctionEffect == 0) return DoesNotAccessMemory; else if ((FR->FunctionEffect & Mod) == 0) return OnlyReadsMemory; } - return AliasAnalysis::getModRefBehavior(F, Info); + return AliasAnalysis::getModRefBehavior(F); } /// getModRefBehavior - Return the behavior of the specified function if /// called from the specified call site. The call site may be null in which /// case the most generic behavior of this function should be returned. - ModRefBehavior getModRefBehavior(ImmutableCallSite CS, - std::vector<PointerAccessInfo> *Info) { + ModRefBehavior getModRefBehavior(ImmutableCallSite CS) { const Function* F = CS.getCalledFunction(); - if (!F) return AliasAnalysis::getModRefBehavior(CS, Info); + if (!F) return AliasAnalysis::getModRefBehavior(CS); if (FunctionRecord *FR = getFunctionInfo(F)) { if (FR->FunctionEffect == 0) return DoesNotAccessMemory; else if ((FR->FunctionEffect & Mod) == 0) return OnlyReadsMemory; } - return AliasAnalysis::getModRefBehavior(CS, Info); + return AliasAnalysis::getModRefBehavior(CS); } virtual void deleteValue(Value *V); |