From 8ccce34ac06c271cff7283d495c6038e0d4e8fd1 Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Fri, 21 Aug 2015 21:18:26 +0000 Subject: [PATCH] [LVI] Use a SmallVector instead of SmallPtrSet. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245739 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/LazyValueInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp index 4fb6b105646..abc0ac8ceaf 100644 --- a/lib/Analysis/LazyValueInfo.cpp +++ b/lib/Analysis/LazyValueInfo.cpp @@ -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 ClearSet(I->second.begin(), I->second.end()); + SmallVector 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())