Remove the '-disable-all-runtime-checks' option that predates current SIL-level

optimization/inlining scheme.

It was actually used while building a release version of stdlib, and
effectively disabled safety checks in debug builds.


Swift SVN r19461
This commit is contained in:
Dmitri Hrybenko
2014-07-02 14:47:29 +00:00
parent f7e926e5b0
commit 6f814ded6b
7 changed files with 2 additions and 166 deletions

View File

@@ -726,8 +726,6 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
} else if (A->getOption().matches(OPT_Ofast)) {
// Set the maximum optimization level and remove all runtime checks.
IRGenOpts.OptLevel = MaxLevel;
// Unchecked casts.
IRGenOpts.DisableAllRuntimeChecks = true;
// Removal of cond_fail (overflow on binary operations).
Opts.RemoveRuntimeAsserts = true;
Opts.AssertConfig = SILOptions::Fast;
@@ -860,7 +858,6 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Opts.TargetFeatures.push_back(A->getValue());
}
Opts.DisableAllRuntimeChecks |= Args.hasArg(OPT_disable_all_runtime_checks);
Opts.DisableLLVMOptzns |= Args.hasArg(OPT_disable_llvm_optzns);
Opts.DisableLLVMARCOpts |= Args.hasArg(OPT_disable_llvm_arc_opts);
Opts.EnableDynamicValueTypeLayout |=