Skip to content

Commit d703abc

Browse files
committed
Remove old flag to disable ossa opts
1 parent c751b62 commit d703abc

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ static llvm::cl::opt<bool> SILViewSILGenCFG(
6161
"sil-view-silgen-cfg", llvm::cl::init(false),
6262
llvm::cl::desc("Enable the sil cfg viewer pass before diagnostics"));
6363

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-
7064
llvm::cl::opt<bool>
7165
EnableDestroyHoisting("enable-destroy-hoisting", llvm::cl::init(false),
7266
llvm::cl::desc("Enable the DestroyHoisting pass."));
@@ -427,7 +421,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
427421
// Cleanup, which is important if the inliner has restarted the pass pipeline.
428422
P.addPerformanceConstantPropagation();
429423

430-
if (!P.getOptions().EnableOSSAModules && !SILDisableLateOMEByDefault) {
424+
if (!P.getOptions().EnableOSSAModules) {
431425
if (P.getOptions().StopOptimizationBeforeLoweringOwnership)
432426
return;
433427

@@ -610,16 +604,6 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
610604
// not blocked by any other passes' optimizations, so do it early.
611605
P.addDifferentiabilityWitnessDevirtualizer();
612606

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-
623607
// Start by linking in referenced functions from other modules.
624608
P.addPerformanceSILLinker();
625609

0 commit comments

Comments
 (0)