Skip to content

Commit f240867

Browse files
authored
Merge pull request #28371 from gottesmm/move-semantic-arc-opts-and-destroy-hoisting-later
[ownership] Move semantic-arc-opts and destroy hoisting right before eliminating ownership from non-transparent functions.
2 parents 4c2254b + 47de65c commit f240867

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
397397
// we do not spend time optimizing them.
398398
P.addDeadFunctionElimination();
399399

400+
P.addSemanticARCOpts();
401+
400402
// Strip ownership from non-transparent functions.
401403
if (P.getOptions().StripOwnershipAfterSerialization)
402404
P.addNonTransparentFunctionOwnershipModelEliminator();

0 commit comments

Comments
 (0)