diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-09 18:48:53 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-09 18:48:53 +0000 |
commit | 220b196c9447a232fbc10bc4af1a774cca6e11f4 (patch) | |
tree | 08a40cce3eddd7f7ba1ed620a0a7e4758ec51bdd /llvm/lib/Analysis/CaptureTracking.cpp | |
parent | 9ccfb641d179871343200a107cfb72f38691dc57 (diff) | |
download | llvm-220b196c9447a232fbc10bc4af1a774cca6e11f4.zip llvm-220b196c9447a232fbc10bc4af1a774cca6e11f4.tar.gz llvm-220b196c9447a232fbc10bc4af1a774cca6e11f4.tar.bz2 |
Reuse the Threshold value to size these containers because it's
currently somewhat convenient for them to have the same value.
llvm-svn: 90980
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 007b282..10a8b11 100644 --- a/llvm/lib/Analysis/CaptureTracking.cpp +++ b/llvm/lib/Analysis/CaptureTracking.cpp @@ -45,8 +45,8 @@ static int const Threshold = 20; bool llvm::PointerMayBeCaptured(const Value *V, bool ReturnCaptures, bool StoreCaptures) { assert(isa<PointerType>(V->getType()) && "Capture is for pointers only!"); - SmallVector<Use*, 20> Worklist; - SmallSet<Use*, 20> Visited; + SmallVector<Use*, Threshold> Worklist; + SmallSet<Use*, Threshold> Visited; int Count = 0; for (Value::use_const_iterator UI = V->use_begin(), UE = V->use_end(); |