@@ -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." ));
@@ -427,7 +421,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
427
421
// Cleanup, which is important if the inliner has restarted the pass pipeline.
428
422
P.addPerformanceConstantPropagation ();
429
423
430
- if (!P.getOptions ().EnableOSSAModules && !SILDisableLateOMEByDefault ) {
424
+ if (!P.getOptions ().EnableOSSAModules ) {
431
425
if (P.getOptions ().StopOptimizationBeforeLoweringOwnership )
432
426
return ;
433
427
@@ -610,16 +604,6 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
610
604
// not blocked by any other passes' optimizations, so do it early.
611
605
P.addDifferentiabilityWitnessDevirtualizer ();
612
606
613
- if (!P.getOptions ().EnableOSSAModules && SILDisableLateOMEByDefault) {
614
- if (P.getOptions ().StopOptimizationBeforeLoweringOwnership )
615
- return ;
616
-
617
- if (SILPrintFinalOSSAModule) {
618
- addModulePrinterPipeline (P, " SIL Print Final OSSA Module" );
619
- }
620
- P.addNonTransparentFunctionOwnershipModelEliminator ();
621
- }
622
-
623
607
// Start by linking in referenced functions from other modules.
624
608
P.addPerformanceSILLinker ();
625
609
0 commit comments