File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
lib/SILOptimizer/PassManager Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -457,10 +457,6 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
457
457
// optimization.
458
458
P.addGlobalOpt ();
459
459
460
- // We earlier eliminated ownership if we are not compiling the stdlib. Now
461
- // handle the stdlib functions.
462
- P.addNonTransparentFunctionOwnershipModelEliminator ();
463
-
464
460
// Add the outliner pass (Osize).
465
461
P.addOutliner ();
466
462
@@ -485,6 +481,11 @@ static void addHighLevelFunctionPipeline(SILPassPipelinePlan &P) {
485
481
P.startPipeline (" HighLevel,Function+EarlyLoopOpt" );
486
482
// FIXME: update EagerSpecializer to be a function pass!
487
483
P.addEagerSpecializer ();
484
+
485
+ // We earlier eliminated ownership if we are not compiling the stdlib. Now
486
+ // handle the stdlib functions.
487
+ P.addNonTransparentFunctionOwnershipModelEliminator ();
488
+
488
489
addFunctionPasses (P, OptimizationLevelKind::HighLevel);
489
490
490
491
addHighLevelLoopOptPasses (P);
@@ -714,6 +715,8 @@ SILPassPipelinePlan::getPerformancePassPipeline(const SILOptions &Options) {
714
715
//
715
716
// FIXME: When *not* emitting a .swiftmodule, skip the high-level function
716
717
// pipeline to save compile time.
718
+ //
719
+ // NOTE: Ownership is now stripped within this function!
717
720
addHighLevelFunctionPipeline (P);
718
721
719
722
addHighLevelModulePipeline (P);
You can’t perform that action at this time.
0 commit comments