mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Reuse the Threshold value to size these containers because it's
currently somewhat convenient for them to have the same value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8a24114b16
commit
89452f7386
@ -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…
Reference in New Issue
Block a user