diff options
author | Nikita Popov <npopov@redhat.com> | 2025-06-06 09:40:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-06 09:40:57 +0200 |
commit | 10dd83d274e04bc974770d2ad8bb8e2b850a74d6 (patch) | |
tree | d111131469064d98478b6d02e9ee50405cc92347 /llvm/lib/Analysis/AliasAnalysis.cpp | |
parent | b2266d6d79fc1dae145cef0de7358eb9e304075c (diff) | |
download | llvm-10dd83d274e04bc974770d2ad8bb8e2b850a74d6.zip llvm-10dd83d274e04bc974770d2ad8bb8e2b850a74d6.tar.gz llvm-10dd83d274e04bc974770d2ad8bb8e2b850a74d6.tar.bz2 |
[AA] Merge isNonEscapingLocalObject() into SimpleCaptureAnalysis (NFC) (#142971)
isNonEscapingLocalObject() is only used by SimpleCaptureAnalysis and
tightly integrated with its implementation (in particular its cache), so
inline and simplify the implementation.
Diffstat (limited to 'llvm/lib/Analysis/AliasAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/AliasAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp index 2afabb7..3ec009c 100644 --- a/llvm/lib/Analysis/AliasAnalysis.cpp +++ b/llvm/lib/Analysis/AliasAnalysis.cpp @@ -857,13 +857,13 @@ bool llvm::isEscapeSource(const Value *V) { return !CB->hasArgumentWithAdditionalReturnCaptureComponents(); } - // The load case works because isNonEscapingLocalObject considers all + // The load case works because isNotCapturedBefore considers all // stores to be escapes (it passes true for the StoreCaptures argument // to PointerMayBeCaptured). if (isa<LoadInst>(V)) return true; - // The inttoptr case works because isNonEscapingLocalObject considers all + // The inttoptr case works because isNotCapturedBefore considers all // means of converting or equating a pointer to an int (ptrtoint, ptr store // which could be followed by an integer load, ptr<->int compare) as // escaping, and objects located at well-known addresses via platform-specific |