@@ -242,6 +242,8 @@ class CodeMotionContext {
242
242
};
243
243
244
244
bool CodeMotionContext::run () {
245
+ MultiIteration = requireIteration ();
246
+
245
247
// Initialize the data flow.
246
248
initializeCodeMotionDataFlow ();
247
249
@@ -332,9 +334,7 @@ class RetainCodeMotionContext : public CodeMotionContext {
332
334
RetainCodeMotionContext (llvm::SpecificBumpPtrAllocator<BlockState> &BPA,
333
335
SILFunction *F, PostOrderFunctionInfo *PO,
334
336
AliasAnalysis *AA, RCIdentityFunctionInfo *RCFI)
335
- : CodeMotionContext(BPA, F, PO, AA, RCFI) {
336
- MultiIteration = requireIteration ();
337
- }
337
+ : CodeMotionContext(BPA, F, PO, AA, RCFI) {}
338
338
339
339
// / virtual destructor.
340
340
~RetainCodeMotionContext () override {}
@@ -684,10 +684,8 @@ class ReleaseCodeMotionContext : public CodeMotionContext {
684
684
AliasAnalysis *AA, RCIdentityFunctionInfo *RCFI,
685
685
bool FreezeEpilogueReleases,
686
686
ConsumedArgToEpilogueReleaseMatcher &ERM)
687
- : CodeMotionContext(BPA, F, PO, AA, RCFI),
688
- FreezeEpilogueReleases (FreezeEpilogueReleases), ERM(ERM) {
689
- MultiIteration = requireIteration ();
690
- }
687
+ : CodeMotionContext(BPA, F, PO, AA, RCFI),
688
+ FreezeEpilogueReleases (FreezeEpilogueReleases), ERM(ERM) {}
691
689
692
690
// / virtual destructor.
693
691
~ReleaseCodeMotionContext () override {}
0 commit comments