diff options
author | Artur Pilipenko <apilipenko@azulsystems.com> | 2018-12-18 03:32:33 +0000 |
---|---|---|
committer | Artur Pilipenko <apilipenko@azulsystems.com> | 2018-12-18 03:32:33 +0000 |
commit | 2a0146e0fd56aab5697a9a0bb9c0333814014400 (patch) | |
tree | b3ed938519274b3afaa1a5955707ff78d83f59d9 /llvm/lib/Analysis/CaptureTracking.cpp | |
parent | 3dac1252daa40d3f30b7b0df074496f608777687 (diff) | |
download | bcm5719-llvm-2a0146e0fd56aab5697a9a0bb9c0333814014400.tar.gz bcm5719-llvm-2a0146e0fd56aab5697a9a0bb9c0333814014400.zip |
[CaptureTracking] Pass MaxUsesToExplore from wrappers to the actual implementation
This is a follow up for rL347910. In the original patch I somehow forgot to pass
the limit from wrappers to the function which actually does the job.
llvm-svn: 349438
Diffstat (limited to 'llvm/lib/Analysis/CaptureTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/CaptureTracking.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/CaptureTracking.cpp b/llvm/lib/Analysis/CaptureTracking.cpp index 7c74c65b3b0..5cac5e5ca61 100644 --- a/llvm/lib/Analysis/CaptureTracking.cpp +++ b/llvm/lib/Analysis/CaptureTracking.cpp @@ -170,7 +170,7 @@ bool llvm::PointerMayBeCaptured(const Value *V, (void)StoreCaptures; SimpleCaptureTracker SCT(ReturnCaptures); - PointerMayBeCaptured(V, &SCT); + PointerMayBeCaptured(V, &SCT, MaxUsesToExplore); return SCT.Captured; } @@ -194,7 +194,8 @@ bool llvm::PointerMayBeCapturedBefore(const Value *V, bool ReturnCaptures, bool UseNewOBB = OBB == nullptr; if (!DT) - return PointerMayBeCaptured(V, ReturnCaptures, StoreCaptures); + return PointerMayBeCaptured(V, ReturnCaptures, StoreCaptures, + MaxUsesToExplore); if (UseNewOBB) OBB = new OrderedBasicBlock(I->getParent()); @@ -202,7 +203,7 @@ bool llvm::PointerMayBeCapturedBefore(const Value *V, bool ReturnCaptures, // with StoreCaptures. CapturesBefore CB(ReturnCaptures, I, DT, IncludeI, OBB); - PointerMayBeCaptured(V, &CB); + PointerMayBeCaptured(V, &CB, MaxUsesToExplore); if (UseNewOBB) delete OBB; |