aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorArtur Pilipenko <apilipenko@azulsystems.com>2018-11-29 20:08:12 +0000
committerArtur Pilipenko <apilipenko@azulsystems.com>2018-11-29 20:08:12 +0000
commiteba2365f23db0cae29e9a187ec16bb64e49be5d6 (patch)
tree6550e834d54e03fc777769d0c3a02e15d642c38c /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent0f90191faa95fe5d63b34e19b2051fbaf00c76a7 (diff)
downloadllvm-eba2365f23db0cae29e9a187ec16bb64e49be5d6.zip
llvm-eba2365f23db0cae29e9a187ec16bb64e49be5d6.tar.gz
llvm-eba2365f23db0cae29e9a187ec16bb64e49be5d6.tar.bz2
Introduce MaxUsesToExplore argument to capture tracking
Currently CaptureTracker gives up if it encounters a value with more than 20 uses. The motivation for this cap is to keep it relatively cheap for BasicAliasAnalysis use case, where the results can't be cached. Although, other clients of CaptureTracker might be ok with higher cost. This patch introduces an argument for PointerMayBeCaptured functions to specify the max number of uses to explore. The motivation for this change is a downstream user of CaptureTracker, but I believe upstream clients of CaptureTracker might also benefit from more fine grained cap. Reviewed By: hfinkel Differential Revision: https://reviews.llvm.org/D55042 llvm-svn: 347910
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions