diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2019-04-02 01:05:48 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2019-04-02 01:05:48 +0000 |
commit | c0ebfbe3f3215e15ff5d6b69218576ec07317821 (patch) | |
tree | e7068a18e1dd05d952bda02898b0bcee03e0618b /llvm/lib/Analysis/CaptureTracking.cpp | |
parent | 536383a3548acb8664748da6698baa9d4c4c8e44 (diff) | |
download | llvm-c0ebfbe3f3215e15ff5d6b69218576ec07317821.zip llvm-c0ebfbe3f3215e15ff5d6b69218576ec07317821.tar.gz llvm-c0ebfbe3f3215e15ff5d6b69218576ec07317821.tar.bz2 |
Add an optional list of blocks to avoid when looking for a path in isPotentiallyReachable.
The leads to some ambiguous overloads, so update three callers.
Differential Revision: https://reviews.llvm.org/D60085
llvm-svn: 357447
Diffstat (limited to 'llvm/lib/Analysis/CaptureTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/CaptureTracking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/CaptureTracking.cpp b/llvm/lib/Analysis/CaptureTracking.cpp index d3bd556..d2a0920 100644 --- a/llvm/lib/Analysis/CaptureTracking.cpp +++ b/llvm/lib/Analysis/CaptureTracking.cpp @@ -101,14 +101,14 @@ namespace { SmallVector<BasicBlock*, 32> Worklist; Worklist.append(succ_begin(BB), succ_end(BB)); - return !isPotentiallyReachableFromMany(Worklist, BB, DT); + return !isPotentiallyReachableFromMany(Worklist, BB, nullptr, DT); } // If the value is defined in the same basic block as use and BeforeHere, // there is no need to explore the use if BeforeHere dominates use. // Check whether there is a path from I to BeforeHere. if (BeforeHere != I && DT->dominates(BeforeHere, I) && - !isPotentiallyReachable(I, BeforeHere, DT)) + !isPotentiallyReachable(I, BeforeHere, nullptr, DT)) return true; return false; |