Skip to content

Commit ed520be

Browse files
committed
Remove old flag to disable ossa opts
1 parent 93c332b commit ed520be

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."));
@@ -423,7 +417,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
423417
// Cleanup, which is important if the inliner has restarted the pass pipeline.
424418
P.addPerformanceConstantPropagation();
425419

426-
if (!P.getOptions().EnableOSSAModules && !SILDisableLateOMEByDefault) {
420+
if (!P.getOptions().EnableOSSAModules) {
427421
if (P.getOptions().StopOptimizationBeforeLoweringOwnership)
428422
return;
429423

@@ -606,16 +600,6 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
606600
// not blocked by any other passes' optimizations, so do it early.
607601
P.addDifferentiabilityWitnessDevirtualizer();
608602

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

0 commit comments

Comments
 (0)