File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/SILOptimizer/PassManager Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -314,12 +314,6 @@ void addFunctionPasses(SILPassPipelinePlan &P,
314
314
// Cleanup, which is important if the inliner has restarted the pass pipeline.
315
315
P.addPerformanceConstantPropagation ();
316
316
317
- // We earlier eliminated ownership if we are not compiling the stdlib. Now
318
- // handle the stdlib functions, re-simplifying, eliminating ARC as we do.
319
- P.addCopyPropagation ();
320
- P.addSemanticARCOpts ();
321
- P.addNonTransparentFunctionOwnershipModelEliminator ();
322
-
323
317
addSimplifyCFGSILCombinePasses (P);
324
318
325
319
P.addArrayElementPropagation ();
@@ -351,6 +345,12 @@ void addFunctionPasses(SILPassPipelinePlan &P,
351
345
// class_method/witness_method instructions may use concrete types now.
352
346
P.addDevirtualizer ();
353
347
348
+ // We earlier eliminated ownership if we are not compiling the stdlib. Now
349
+ // handle the stdlib functions, re-simplifying, eliminating ARC as we do.
350
+ P.addCopyPropagation ();
351
+ P.addSemanticARCOpts ();
352
+ P.addNonTransparentFunctionOwnershipModelEliminator ();
353
+
354
354
switch (OpLevel) {
355
355
case OptimizationLevelKind::HighLevel:
356
356
// Does not inline functions with defined semantics.
You can’t perform that action at this time.
0 commit comments