mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Adjust to new alias analysis interfaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -113,9 +113,10 @@ void AliasSet::addCallSite(CallSite CS, AliasAnalysis &AA) {
|
||||
CallSites.push_back(CS);
|
||||
|
||||
if (Function *F = CS.getCalledFunction()) {
|
||||
if (AA.doesNotAccessMemory(F))
|
||||
AliasAnalysis::ModRefBehavior Behavior = AA.getModRefBehavior(F, CS);
|
||||
if (Behavior == AliasAnalysis::DoesNotAccessMemory)
|
||||
return;
|
||||
else if (AA.onlyReadsMemory(F)) {
|
||||
else if (Behavior == AliasAnalysis::OnlyReadsMemory) {
|
||||
AliasTy = MayAlias;
|
||||
AccessTy |= Refs;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user