Skip to content

Commit ba2e04b

Browse files
committed
[ownership] Move the stdlib ome point to before global opt.
This just moves it past the SIL linker (which since the stdlib doesn't link anything will not change anything and past TempRValueOpt which is already updated for OSSA.
1 parent 336d63f commit ba2e04b

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
@@ -445,10 +445,6 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
445445
// the stdlib and then everything else.
446446
P.addNonStdlibNonTransparentFunctionOwnershipModelEliminator();
447447

448-
// We earlier eliminated ownership if we are not compiling the stdlib. Now
449-
// handle the stdlib functions.
450-
P.addNonTransparentFunctionOwnershipModelEliminator();
451-
452448
// Start by linking in referenced functions from other modules.
453449
P.addPerformanceSILLinker();
454450

@@ -457,6 +453,10 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
457453
// is linked in from the stdlib.
458454
P.addTempRValueOpt();
459455

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

0 commit comments

Comments
 (0)