Skip to content

Commit ff1d177

Browse files
committed
[embedded] Move the DFE pass to getOnonePassPipeline
1 parent d784822 commit ff1d177

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -891,13 +891,6 @@ SILPassPipelinePlan::getIRGenPreparePassPipeline(const SILOptions &Options) {
891891
// boundaries as required by the ABI.
892892
P.addLoadableByAddress();
893893

894-
if (Options.EmbeddedSwift) {
895-
// For embedded Swift: Remove all unspecialized functions. This is important
896-
// to avoid having debuginfo references to these functions that we don't
897-
// want to emit in IRGen.
898-
P.addLateDeadFunctionAndGlobalElimination();
899-
}
900-
901894
if (Options.EnablePackMetadataStackPromotion) {
902895
// Insert marker instructions indicating where on-stack pack metadata
903896
// deallocation must occur.
@@ -1051,6 +1044,13 @@ SILPassPipelinePlan::getOnonePassPipeline(const SILOptions &Options) {
10511044
// constant folded before any generic specialization.
10521045
P.addLateOnoneSimplification();
10531046

1047+
if (Options.EmbeddedSwift) {
1048+
// For embedded Swift: Remove all unspecialized functions. This is important
1049+
// to avoid having debuginfo references to these functions that we don't
1050+
// want to emit in IRGen.
1051+
P.addLateDeadFunctionAndGlobalElimination();
1052+
}
1053+
10541054
P.addCleanupDebugSteps();
10551055

10561056
// Has only an effect if the -sil-based-debuginfo option is specified.

0 commit comments

Comments
 (0)