Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/SILOptimizer/PassManager/PassPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,17 +289,17 @@ void addFunctionPasses(SILPassPipelinePlan &P,
// Split up opaque operations (copy_addr, retain_value, etc.).
P.addLowerAggregateInstrs();

// We earlier eliminated ownership if we are not compiling the stdlib. Now
// handle the stdlib functions.
P.addNonTransparentFunctionOwnershipModelEliminator();

// Split up operations on stack-allocated aggregates (struct, tuple).
if (OpLevel == OptimizationLevelKind::HighLevel) {
P.addEarlySROA();
} else {
P.addSROA();
}

// We earlier eliminated ownership if we are not compiling the stdlib. Now
// handle the stdlib functions.
P.addNonTransparentFunctionOwnershipModelEliminator();

// Promote stack allocations to values.
P.addMem2Reg();

Expand Down