diff options
author | Nikita Popov <npopov@redhat.com> | 2022-10-19 11:03:54 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-10-19 11:03:54 +0200 |
commit | 747f27d97d230b0b3e318dd9d3815d27d1bb0652 (patch) | |
tree | bb6c1a573f00e5fa1510196e6e8a4d7d1afd8b9f /polly | |
parent | 1a9d9823c5feb6336adb6d0ad1042b81350e4e20 (diff) | |
download | llvm-747f27d97d230b0b3e318dd9d3815d27d1bb0652.tar.gz |
[AA] Rename getModRefBehavior() to getMemoryEffects() (NFC)
Follow up on D135962, renaming the method name to match the new
type name.
Diffstat (limited to 'polly')
-rw-r--r-- | polly/lib/Analysis/ScopBuilder.cpp | 2 | ||||
-rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp index 9f6f9200bd8a..09c52eb97663 100644 --- a/polly/lib/Analysis/ScopBuilder.cpp +++ b/polly/lib/Analysis/ScopBuilder.cpp @@ -1636,7 +1636,7 @@ bool ScopBuilder::buildAccessCallInst(MemAccInst Inst, ScopStmt *Stmt) { auto *AF = SE.getConstant(IntegerType::getInt64Ty(CI->getContext()), 0); auto *CalledFunction = CI->getCalledFunction(); - MemoryEffects ME = AA.getModRefBehavior(CalledFunction); + MemoryEffects ME = AA.getMemoryEffects(CalledFunction); if (ME.doesNotAccessMemory()) return true; diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index dbdde2986ac8..c95341f8e3db 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -708,7 +708,7 @@ bool ScopDetection::isValidCallInst(CallInst &CI, } if (AllowModrefCall) { - MemoryEffects ME = AA.getModRefBehavior(CalledFunction); + MemoryEffects ME = AA.getMemoryEffects(CalledFunction); if (ME.onlyAccessesArgPointees()) { for (const auto &Arg : CI.args()) { if (!Arg->getType()->isPointerTy()) |