[llvm] [CaptureTracking] Compute results with and without return capture (PR #195857)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 06:48:21 PDT 2026
================
@@ -1414,8 +1414,8 @@ bool DSEState::isInvisibleToCallerOnUnwind(const Value *V) {
// with the killing MemoryDef. But we refrain from doing so for now to
// limit compile-time and this does not cause any changes to the number
// of stores removed on a large test set in practice.
- I.first->second = capturesAnything(PointerMayBeCaptured(
- V, /*ReturnCaptures=*/false, CaptureComponents::Provenance));
+ I.first->second = capturesAnything(
+ PointerMayBeCaptured(V, CaptureComponents::Provenance).WithoutRet);
----------------
nikic wrote:
It's probably possible to combine these two calls now with some refactoring...
https://github.com/llvm/llvm-project/pull/195857
More information about the llvm-commits
mailing list