mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[move-only] Move the non-trivial move only type eliminator to the end of the guaranteed pipeline.
Still being careful with it. With time I want to move it back to IRGen.
This commit is contained in:
@@ -140,10 +140,6 @@ static void addMandatoryDiagnosticOptPipeline(SILPassPipelinePlan &P) {
|
||||
P.addMoveKillsCopyableValuesChecker(); // No uses after _move of copyable
|
||||
// value.
|
||||
P.addTrivialMoveOnlyTypeEliminator();
|
||||
// As a temporary measure, we also eliminate move only for non-trivial types
|
||||
// until we can audit the later part of the pipeline. Eventually, this should
|
||||
// occur before IRGen.
|
||||
P.addMoveOnlyTypeEliminator();
|
||||
|
||||
P.addAddressLowering();
|
||||
|
||||
@@ -221,6 +217,11 @@ static void addMandatoryDiagnosticOptPipeline(SILPassPipelinePlan &P) {
|
||||
|
||||
// Canonical swift requires all non cond_br critical edges to be split.
|
||||
P.addSplitNonCondBrCriticalEdges();
|
||||
|
||||
// As a temporary measure, we also eliminate move only for non-trivial types
|
||||
// until we can audit the later part of the pipeline. Eventually, this should
|
||||
// occur before IRGen.
|
||||
P.addMoveOnlyTypeEliminator();
|
||||
}
|
||||
|
||||
SILPassPipelinePlan
|
||||
|
||||
Reference in New Issue
Block a user