mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-19 04:26:05 +00:00
Remove the AliasAnalysis::getMustAliases method, which is dead.
The hasNoModRefInfoForCalls isn't worth it as a filter because basicaa provides m/r info and everything chains to it, so remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -153,9 +153,6 @@ bool AliasSet::aliasesPointer(const Value *Ptr, unsigned Size,
|
||||
|
||||
// Check the call sites list and invoke list...
|
||||
if (!CallSites.empty()) {
|
||||
if (AA.hasNoModRefInfoForCalls())
|
||||
return true;
|
||||
|
||||
for (unsigned i = 0, e = CallSites.size(); i != e; ++i)
|
||||
if (AA.getModRefInfo(CallSites[i], const_cast<Value*>(Ptr), Size)
|
||||
!= AliasAnalysis::NoModRef)
|
||||
@@ -169,9 +166,6 @@ bool AliasSet::aliasesCallSite(CallSite CS, AliasAnalysis &AA) const {
|
||||
if (AA.doesNotAccessMemory(CS))
|
||||
return false;
|
||||
|
||||
if (AA.hasNoModRefInfoForCalls())
|
||||
return true;
|
||||
|
||||
for (unsigned i = 0, e = CallSites.size(); i != e; ++i)
|
||||
if (AA.getModRefInfo(CallSites[i], CS) != AliasAnalysis::NoModRef ||
|
||||
AA.getModRefInfo(CS, CallSites[i]) != AliasAnalysis::NoModRef)
|
||||
|
Reference in New Issue
Block a user