Skip to content

Commit 5714982

Browse files
committed
[NFC] Print final ossa module when enabled
1 parent 192bb33 commit 5714982

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,9 @@ SILPassPipelinePlan::getPerformancePassPipeline(const SILOptions &Options) {
10111011
// importing this module.
10121012
P.addSerializeSILPass();
10131013

1014+
if (P.getOptions().EnableOSSAModules && SILPrintFinalOSSAModule) {
1015+
addModulePrinterPipeline(P, "SIL Print Final OSSA Module");
1016+
}
10141017
// Strip any transparent functions that still have ownership.
10151018
P.addOwnershipModelEliminator();
10161019

0 commit comments

Comments
 (0)