mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove a obsolete RC identity cache, we have a cache in the RCIdentity analysis itself now
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user