File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
lib/SILOptimizer/PassManager Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,15 @@ void addFunctionPasses(SILPassPipelinePlan &P,
396
396
P.addSROA ();
397
397
}
398
398
399
+ // Promote stack allocations to values.
400
+ P.addMem2Reg ();
401
+
402
+ // Run the existential specializer Pass.
403
+ P.addExistentialSpecializer ();
404
+
405
+ // Cleanup, which is important if the inliner has restarted the pass pipeline.
406
+ P.addPerformanceConstantPropagation ();
407
+
399
408
if (!P.getOptions ().EnableOSSAModules && !SILDisableLateOMEByDefault) {
400
409
if (P.getOptions ().StopOptimizationBeforeLoweringOwnership )
401
410
return ;
@@ -406,15 +415,6 @@ void addFunctionPasses(SILPassPipelinePlan &P,
406
415
P.addNonTransparentFunctionOwnershipModelEliminator ();
407
416
}
408
417
409
- // Promote stack allocations to values.
410
- P.addMem2Reg ();
411
-
412
- // Run the existential specializer Pass.
413
- P.addExistentialSpecializer ();
414
-
415
- // Cleanup, which is important if the inliner has restarted the pass pipeline.
416
- P.addPerformanceConstantPropagation ();
417
-
418
418
addSimplifyCFGSILCombinePasses (P);
419
419
420
420
P.addArrayElementPropagation ();
You can’t perform that action at this time.
0 commit comments