We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5b905e commit 5b79cb7Copy full SHA for 5b79cb7
lib/SILOptimizer/Transforms/RetainReleaseCodeMotion.cpp
@@ -224,16 +224,9 @@ class CodeMotionContext {
224
/// we compute the genset and killset.
225
llvm::SmallPtrSet<SILBasicBlock *, 8> InterestBlocks;
226
227
- /// An RC-identity cache.
228
- /// TODO: this should be cached in RCIdentity analysis.
229
- llvm::DenseMap<SILValue, SILValue> RCCache;
230
-
231
/// Return the rc-identity root of the SILValue.
232
SILValue getRCRoot(SILValue R) {
233
- auto Iter = RCCache.find(R);
234
- if (Iter != RCCache.end())
235
- return Iter->second;
236
- return RCCache[R] = RCFI->getRCIdentityRoot(R);
+ return RCFI->getRCIdentityRoot(R);
237
}
238
239
/// Return the rc-identity root of the RC instruction, i.e.
0 commit comments