Remove a obsolete RC identity cache, we have a cache in the RCIdentity analysis itself now

This commit is contained in:
Xin Tong
2016-05-25 09:29:06 -07:00
parent b5b905e3cc
commit 5b79cb7cfb

View File

@@ -224,16 +224,9 @@ protected:
/// we compute the genset and killset.
llvm::SmallPtrSet<SILBasicBlock *, 8> InterestBlocks;
/// An RC-identity cache.
/// TODO: this should be cached in RCIdentity analysis.
llvm::DenseMap<SILValue, SILValue> RCCache;
/// Return the rc-identity root of the SILValue.
SILValue getRCRoot(SILValue R) {
auto Iter = RCCache.find(R);
if (Iter != RCCache.end())
return Iter->second;
return RCCache[R] = RCFI->getRCIdentityRoot(R);
return RCFI->getRCIdentityRoot(R);
}
/// Return the rc-identity root of the RC instruction, i.e.