mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 18:38:37 +00:00
Reuse the Threshold value to size these containers because it's
currently somewhat convenient for them to have the same value. llvm-svn: 90980
This commit is contained in:
parent
796d04d168
commit
663165c16f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user