[llvm-commits] [llvm] r90980 - /llvm/trunk/lib/Analysis/CaptureTracking.cpp
Dan Gohman
gohman at apple.com
Wed Dec 9 10:48:54 PST 2009
Author: djg
Date: Wed Dec 9 12:48:53 2009
New Revision: 90980
URL: http://llvm.org/viewvc/llvm-project?rev=90980&view=rev
Log:
Reuse the Threshold value to size these containers because it's
currently somewhat convenient for them to have the same value.
Modified:
llvm/trunk/lib/Analysis/CaptureTracking.cpp
Modified: llvm/trunk/lib/Analysis/CaptureTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CaptureTracking.cpp?rev=90980&r1=90979&r2=90980&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CaptureTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/CaptureTracking.cpp Wed Dec 9 12:48:53 2009
@@ -45,8 +45,8 @@
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();
More information about the llvm-commits
mailing list