Skip to content

Commit 2a7af5f

Browse files
committed
Delete the flag -disable-func-sig-opts.
This commit removes the flag -disable-func-sig-opts.
1 parent 9617af5 commit 2a7af5f

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

Diff for: include/swift/AST/SILOptions.h

-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ class SILOptions {
8989
/// Should we print out instruction counts if -print-stats is passed in?
9090
bool PrintInstCounts = false;
9191

92-
/// Should we optimize function signatures?
93-
bool EnableFuncSigOpts = true;
94-
9592
/// Instrument code to generate profiling information.
9693
bool GenerateProfile = false;
9794

Diff for: include/swift/Option/FrontendOptions.td

-3
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,6 @@ def use_malloc : Flag<["-"], "use-malloc">,
266266
HelpText<"Allocate internal data structures using malloc "
267267
"(for memory debugging)">;
268268

269-
def disable_func_sig_opts : Flag<["-"], "disable-func-sig-opts">,
270-
HelpText<"Disable function signature optimizations">;
271-
272269
def interpret : Flag<["-"], "interpret">, HelpText<"Immediate mode">, ModeOpt;
273270

274271
def verify_type_layout : JoinedOrSeparate<["-"], "verify-type-layout">,

Diff for: lib/Frontend/CompilerInvocation.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,6 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
991991
Opts.DebugSerialization |= Args.hasArg(OPT_sil_debug_serialization);
992992
Opts.EmitVerboseSIL |= Args.hasArg(OPT_emit_verbose_sil);
993993
Opts.PrintInstCounts |= Args.hasArg(OPT_print_inst_counts);
994-
Opts.EnableFuncSigOpts &= !Args.hasArg(OPT_disable_func_sig_opts);
995994
if (const Arg *A = Args.getLastArg(OPT_external_pass_pipeline_filename))
996995
Opts.ExternalPassPipelineFilename = A->getValue();
997996

Diff for: lib/SILPasses/PassManager/Passes.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,10 @@ void swift::runSILOptimizationPasses(SILModule &Module) {
299299
// Speculate virtual call targets.
300300
PM.addSpeculativeDevirtualization();
301301

302-
// Optimize function signatures if we are asked to.
303-
//
304302
// We do this late since it is a pass like the inline caches that we only want
305303
// to run once very late. Make sure to run at least one round of the ARC
306304
// optimizer after this.
307-
if (Module.getOptions().EnableFuncSigOpts)
308-
PM.addFunctionSignatureOpts();
305+
PM.addFunctionSignatureOpts();
309306

310307
PM.runOneIteration();
311308
PM.resetAndRemoveTransformations();

0 commit comments

Comments
 (0)