@@ -61,12 +61,6 @@ static llvm::cl::opt<bool> SILViewSILGenCFG(
61
61
" sil-view-silgen-cfg" , llvm::cl::init(false ),
62
62
llvm::cl::desc(" Enable the sil cfg viewer pass before diagnostics" ));
63
63
64
-
65
- llvm::cl::opt<bool > SILDisableLateOMEByDefault (
66
- " sil-disable-late-ome-by-default" , llvm::cl::init(false ),
67
- llvm::cl::desc(
68
- " Disable late OME for non-transparent functions by default" ));
69
-
70
64
llvm::cl::opt<bool >
71
65
EnableDestroyHoisting (" enable-destroy-hoisting" , llvm::cl::init(false ),
72
66
llvm::cl::desc(" Enable the DestroyHoisting pass." ));
@@ -423,7 +417,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
423
417
// Cleanup, which is important if the inliner has restarted the pass pipeline.
424
418
P.addPerformanceConstantPropagation ();
425
419
426
- if (!P.getOptions ().EnableOSSAModules && !SILDisableLateOMEByDefault ) {
420
+ if (!P.getOptions ().EnableOSSAModules ) {
427
421
if (P.getOptions ().StopOptimizationBeforeLoweringOwnership )
428
422
return ;
429
423
@@ -606,16 +600,6 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
606
600
// not blocked by any other passes' optimizations, so do it early.
607
601
P.addDifferentiabilityWitnessDevirtualizer ();
608
602
609
- if (!P.getOptions ().EnableOSSAModules && SILDisableLateOMEByDefault) {
610
- if (P.getOptions ().StopOptimizationBeforeLoweringOwnership )
611
- return ;
612
-
613
- if (SILPrintFinalOSSAModule) {
614
- addModulePrinterPipeline (P, " SIL Print Final OSSA Module" );
615
- }
616
- P.addNonTransparentFunctionOwnershipModelEliminator ();
617
- }
618
-
619
603
// Start by linking in referenced functions from other modules.
620
604
P.addPerformanceSILLinker ();
621
605
0 commit comments