File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class CodeMotionContext {
161
161
RCIdentityFunctionInfo *RCFI;
162
162
163
163
// / All the unique refcount roots retained or released in the function.
164
- llvm::SetVector <SILValue> RCRootVault;
164
+ llvm::SmallVector <SILValue, 16 > RCRootVault;
165
165
166
166
// / Contains a map between RC roots to their index in the RCRootVault.
167
167
// / used to facilitate fast RC roots to index lookup.
@@ -413,7 +413,7 @@ void RetainCodeMotionContext::initializeCodeMotionDataFlow() {
413
413
if (RCRootIndex.find (Root) != RCRootIndex.end ())
414
414
continue ;
415
415
RCRootIndex[Root] = RCRootVault.size ();
416
- RCRootVault.insert (Root);
416
+ RCRootVault.push_back (Root);
417
417
LLVM_DEBUG (llvm::dbgs ()
418
418
<< " Retain Root #" << RCRootVault.size () << " " << Root);
419
419
}
@@ -801,7 +801,7 @@ void ReleaseCodeMotionContext::initializeCodeMotionDataFlow() {
801
801
if (RCRootIndex.find (Root) != RCRootIndex.end ())
802
802
continue ;
803
803
RCRootIndex[Root] = RCRootVault.size ();
804
- RCRootVault.insert (Root);
804
+ RCRootVault.push_back (Root);
805
805
LLVM_DEBUG (llvm::dbgs ()
806
806
<< " Release Root #" << RCRootVault.size () << " " << Root);
807
807
}
You can’t perform that action at this time.
0 commit comments