IRGen: Remove different NoAlias behavior at Ounchecked

As per discussion on the mailing list we don't want different behavior for
programmer errors at Ounchecked than at O for errors that are not diagnosable.

Neither O nor Ounchecked will now emit LLVM's NoAlias attribute for inout
parameters.

rdar://20041458

Swift SVN r25784
This commit is contained in:
Arnold Schwaighofer
2015-03-05 19:17:23 +00:00
parent 34b74cfa1c
commit 8482dbbb93
4 changed files with 8 additions and 22 deletions

View File

@@ -821,7 +821,6 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
} else if (A->getOption().matches(OPT_Ounchecked)) {
// Turn on optimizations and remove all runtime checks.
IRGenOpts.Optimize = true;
IRGenOpts.Unchecked = true;
// Removal of cond_fail (overflow on binary operations).
Opts.RemoveRuntimeAsserts = true;
Opts.AssertConfig = SILOptions::Fast;