aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-10-19 10:42:09 +0200
committerNikita Popov <npopov@redhat.com>2022-10-19 10:54:47 +0200
commit1a9d9823c5feb6336adb6d0ad1042b81350e4e20 (patch)
tree2e3500beec1026ce220aff613077bc3b0c40cffd /llvm/lib/Transforms/Utils/InlineFunction.cpp
parenta5b35dee7a945452fd0c0183cad9bcc598a6ecd6 (diff)
downloadllvm-1a9d9823c5feb6336adb6d0ad1042b81350e4e20.zip
llvm-1a9d9823c5feb6336adb6d0ad1042b81350e4e20.tar.gz
llvm-1a9d9823c5feb6336adb6d0ad1042b81350e4e20.tar.bz2
[AA] Rename uses of FunctionModRefBehavior (NFC)
Followup to D135962 to rename remaining uses of FunctionModRefBehavior to MemoryEffects. Does not touch API names yet, but also updates variables names FMRB/MRB to ME, to match the new type name.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index da1ce85..ad1a001e 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1233,13 +1233,13 @@ static void AddAliasScopeMetadata(CallBase &CB, ValueToValueMapTy &VMap,
IsFuncCall = true;
if (CalleeAAR) {
- FunctionModRefBehavior MRB = CalleeAAR->getModRefBehavior(Call);
+ MemoryEffects ME = CalleeAAR->getModRefBehavior(Call);
// We'll retain this knowledge without additional metadata.
- if (MRB.onlyAccessesInaccessibleMem())
+ if (ME.onlyAccessesInaccessibleMem())
continue;
- if (MRB.onlyAccessesArgPointees())
+ if (ME.onlyAccessesArgPointees())
IsArgMemOnlyCall = true;
}