@@ -55,10 +55,6 @@ static llvm::cl::opt<bool> SILViewSILGenCFG(
55
55
" sil-view-silgen-cfg" , llvm::cl::init(false ),
56
56
llvm::cl::desc(" Enable the sil cfg viewer pass before diagnostics" ));
57
57
58
- static llvm::cl::opt<bool >
59
- SILEnableLateOME (" sil-enable-late-ome" , llvm::cl::init(false ),
60
- llvm::cl::desc(" Enable late OwnershipModel elimination" ));
61
-
62
58
// ===----------------------------------------------------------------------===//
63
59
// Diagnostic Pass Pipeline
64
60
// ===----------------------------------------------------------------------===//
@@ -382,7 +378,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
382
378
P.addDevirtualizer ();
383
379
P.addARCSequenceOpts ();
384
380
385
- if (P.getOptions ().EnableOSSAModules || SILEnableLateOME ) {
381
+ if (P.getOptions ().EnableOSSAModules ) {
386
382
// We earlier eliminated ownership if we are not compiling the stdlib. Now
387
383
// handle the stdlib functions, re-simplifying, eliminating ARC as we do.
388
384
if (!P.getOptions ().DisableCopyPropagation ) {
@@ -408,7 +404,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
408
404
}
409
405
410
406
// Clean up Semantic ARC before we perform additional post-inliner opts.
411
- if (P.getOptions ().EnableOSSAModules || SILEnableLateOME ) {
407
+ if (P.getOptions ().EnableOSSAModules ) {
412
408
if (!P.getOptions ().DisableCopyPropagation ) {
413
409
P.addCopyPropagation ();
414
410
}
@@ -475,7 +471,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
475
471
P.addARCSequenceOpts ();
476
472
477
473
// Run a final round of ARC opts when ownership is enabled.
478
- if (P.getOptions ().EnableOSSAModules || SILEnableLateOME ) {
474
+ if (P.getOptions ().EnableOSSAModules ) {
479
475
if (!P.getOptions ().DisableCopyPropagation ) {
480
476
P.addCopyPropagation ();
481
477
}
@@ -532,7 +528,7 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
532
528
if (P.getOptions ().StopOptimizationBeforeLoweringOwnership )
533
529
return ;
534
530
535
- if (!P.getOptions ().EnableOSSAModules && !SILEnableLateOME )
531
+ if (!P.getOptions ().EnableOSSAModules )
536
532
P.addNonTransparentFunctionOwnershipModelEliminator ();
537
533
538
534
// Start by linking in referenced functions from other modules.
@@ -828,7 +824,7 @@ SILPassPipelinePlan::getPerformancePassPipeline(const SILOptions &Options) {
828
824
829
825
// Run one last copy propagation/semantic arc opts run before serialization/us
830
826
// lowering ownership.
831
- if (P.getOptions ().EnableOSSAModules || SILEnableLateOME ) {
827
+ if (P.getOptions ().EnableOSSAModules ) {
832
828
if (!P.getOptions ().DisableCopyPropagation ) {
833
829
P.addCopyPropagation ();
834
830
}
0 commit comments