aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2022-03-21 10:01:24 -0700
committerPhilip Reames <listmail@philipreames.com>2022-03-21 10:01:40 -0700
commitee7324b898f775eb9ee14c23a4e57b9a2aa6e3f6 (patch)
tree7e93651b7d3f1785239d9656fe3468132b228774 /llvm/lib/Analysis/ValueTracking.cpp
parent95cf1903cf31c03889d50b9cecc3f293956d0d44 (diff)
downloadllvm-ee7324b898f775eb9ee14c23a4e57b9a2aa6e3f6.zip
llvm-ee7324b898f775eb9ee14c23a4e57b9a2aa6e3f6.tar.gz
llvm-ee7324b898f775eb9ee14c23a4e57b9a2aa6e3f6.tar.bz2
Rename mayBeMemoryDependent to mayHaveNonDefUseDependency [nfc]
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 0cdfa5b..021e5d9 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -4643,7 +4643,7 @@ bool llvm::isSafeToSpeculativelyExecute(const Value *V,
}
}
-bool llvm::mayBeMemoryDependent(const Instruction &I) {
+bool llvm::mayHaveNonDefUseDependency(const Instruction &I) {
return I.mayReadOrWriteMemory() || !isSafeToSpeculativelyExecute(&I);
}