Skip to content

Commit f8d8091

Browse files
authored
[ownership] Move ome after GlobalOpt (swiftlang#32742)
1 parent 241c5d9 commit f8d8091

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,14 +453,14 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
453453
// is linked in from the stdlib.
454454
P.addTempRValueOpt();
455455

456-
// We earlier eliminated ownership if we are not compiling the stdlib. Now
457-
// handle the stdlib functions.
458-
P.addNonTransparentFunctionOwnershipModelEliminator();
459-
460456
// Needed to serialize static initializers of globals for cross-module
461457
// optimization.
462458
P.addGlobalOpt();
463459

460+
// We earlier eliminated ownership if we are not compiling the stdlib. Now
461+
// handle the stdlib functions.
462+
P.addNonTransparentFunctionOwnershipModelEliminator();
463+
464464
// Add the outliner pass (Osize).
465465
P.addOutliner();
466466

0 commit comments

Comments
 (0)