Skip to content

Commit 0893f08

Browse files
authored
Merge pull request #32574 from gottesmm/pr-0a4cbd7fcfed51ea527c5cce60457b84176753ff
[ownership] Move the stdlib ome point to before global opt.
2 parents ebf01c9 + ba2e04b commit 0893f08

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)