Remove sil option flags that are no longer needed.

Swift SVN r25828
This commit is contained in:
Michael Gottesman
2015-03-07 02:31:52 +00:00
parent b3e0264e08
commit e40f01c9ed
4 changed files with 1 additions and 14 deletions

View File

@@ -48,9 +48,6 @@ public:
/// Remove all runtime assertions during optimizations.
bool RemoveRuntimeAsserts = false;
/// Controls whether the SIL ARC optimizations are run.
bool EnableARCOptimizations = true;
/// Controls whether or not paranoid verification checks are run.
bool VerifyAll = false;
@@ -86,9 +83,6 @@ public:
/// Should we print out instruction counts if -print-stats is passed in?
bool PrintInstCounts = false;
/// Should we optimize function signatures?
bool EnableFuncSigOpts = true;
/// Should we emit self as a guaranteed parameter?
bool EnableGuaranteedSelf = false;

View File

@@ -863,14 +863,12 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
// -Ounchecked might also set removal of runtime asserts (cond_fail).
Opts.RemoveRuntimeAsserts |= Args.hasArg(OPT_remove_runtime_asserts);
Opts.EnableARCOptimizations |= !Args.hasArg(OPT_disable_arc_opts);
Opts.VerifyAll |= Args.hasArg(OPT_sil_verify_all);
Opts.PrintAll |= Args.hasArg(OPT_sil_print_all);
Opts.PrintPassName |= Args.hasArg(OPT_sil_print_pass_name);
Opts.TimeTransforms |= Args.hasArg(OPT_sil_time_transforms);
Opts.DebugSerialization |= Args.hasArg(OPT_sil_debug_serialization);
Opts.PrintInstCounts |= Args.hasArg(OPT_print_inst_counts);
Opts.EnableFuncSigOpts &= !Args.hasArg(OPT_disable_func_sig_opts);
Opts.EnableGuaranteedSelf |= Args.hasArg(OPT_enable_guaranteed_self);
if (const Arg *A = Args.getLastArg(OPT_external_pass_pipeline_filename))
Opts.ExternalPassPipelineFilename = A->getValue();

View File

@@ -220,10 +220,6 @@ namespace {
class GlobalARCOpts : public SILFunctionTransform {
/// The entry point to the transformation.
void run() override {
// If ARC optimizations are disabled, don't optimize anything and bail.
if (!getOptions().EnableARCOptimizations)
return;
auto *AA = getAnalysis<AliasAnalysis>();
auto *POTA = getAnalysis<PostOrderAnalysis>();
auto *RCIA = getAnalysis<RCIdentityAnalysis>();

View File

@@ -269,7 +269,6 @@ void swift::runSILOptimizationPasses(SILModule &Module) {
// We do this late since it is a pass like the inline caches that we only want
// to run once very late. Make sure to run at least one round of the ARC
// optimizer after this.
if (Module.getOptions().EnableFuncSigOpts)
PM.add(createFunctionSignatureOpts());
PM.run();