File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/SILOptimizer/PassManager Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -308,18 +308,18 @@ void addFunctionPasses(SILPassPipelinePlan &P,
308308 // Promote stack allocations to values.
309309 P.addMem2Reg ();
310310
311- // We earlier eliminated ownership if we are not compiling the stdlib. Now
312- // handle the stdlib functions, re-simplifying, eliminating ARC as we do.
313- P.addCopyPropagation ();
314- P.addSemanticARCOpts ();
315- P.addNonTransparentFunctionOwnershipModelEliminator ();
316-
317311 // Run the existential specializer Pass.
318312 P.addExistentialSpecializer ();
319313
320314 // Cleanup, which is important if the inliner has restarted the pass pipeline.
321315 P.addPerformanceConstantPropagation ();
322316
317+ // We earlier eliminated ownership if we are not compiling the stdlib. Now
318+ // handle the stdlib functions, re-simplifying, eliminating ARC as we do.
319+ P.addCopyPropagation ();
320+ P.addSemanticARCOpts ();
321+ P.addNonTransparentFunctionOwnershipModelEliminator ();
322+
323323 addSimplifyCFGSILCombinePasses (P);
324324
325325 P.addArrayElementPropagation ();
You can’t perform that action at this time.
0 commit comments