Skip to content

Commit 47de65c

Browse files
committed
[ownership] Add an additional run of the SemanticARCOpts at the beginning of the perf pipeline.
I left in the run before DestroyHoisting since I believe that DestroyHoisting depends a bit on SemanticARCOpts running, but at the same time I don't want to deal with any regressions that may come from moving DestroyHoisting.
1 parent 8a9f535 commit 47de65c

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)