forked from OSchip/llvm-project
[LVI] Use a SmallVector instead of SmallPtrSet. NFC
llvm-svn: 245739
This commit is contained in:
parent
b981d37272
commit
7a1483e7d1
|
@ -1055,7 +1055,7 @@ void LazyValueInfoCache::threadEdge(BasicBlock *PredBB, BasicBlock *OldSucc,
|
|||
auto I = OverDefinedCache.find(OldSucc);
|
||||
if (I == OverDefinedCache.end())
|
||||
return; // Nothing to process here.
|
||||
SmallPtrSet<Value *, 4> ClearSet(I->second.begin(), I->second.end());
|
||||
SmallVector<Value *, 4> ValsToClear(I->second.begin(), I->second.end());
|
||||
|
||||
// Use a worklist to perform a depth-first search of OldSucc's successors.
|
||||
// NOTE: We do not need a visited list since any blocks we have already
|
||||
|
@ -1069,7 +1069,7 @@ void LazyValueInfoCache::threadEdge(BasicBlock *PredBB, BasicBlock *OldSucc,
|
|||
if (ToUpdate == NewSucc) continue;
|
||||
|
||||
bool changed = false;
|
||||
for (Value *V : ClearSet) {
|
||||
for (Value *V : ValsToClear) {
|
||||
// If a value was marked overdefined in OldSucc, and is here too...
|
||||
auto OI = OverDefinedCache.find(ToUpdate);
|
||||
if (OI == OverDefinedCache.end())
|
||||
|
|
Loading…
Reference in New Issue