mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rename disable-llvm-arc-opts => disable-swift-specific-llvm-optzns and make sure that we actually disable /all/ LLVM passes.
For instance, we were always running merge functions unconditionally if -O was passed. rdar://40097698
This commit is contained in:
@@ -812,7 +812,8 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
}
|
||||
|
||||
Opts.DisableLLVMOptzns |= Args.hasArg(OPT_disable_llvm_optzns);
|
||||
Opts.DisableLLVMARCOpts |= Args.hasArg(OPT_disable_llvm_arc_opts);
|
||||
Opts.DisableSwiftSpecificLLVMOptzns |=
|
||||
Args.hasArg(OPT_disable_swift_specific_llvm_optzns);
|
||||
Opts.DisableLLVMSLPVectorizer |= Args.hasArg(OPT_disable_llvm_slp_vectorizer);
|
||||
if (Args.hasArg(OPT_disable_llvm_verify))
|
||||
Opts.Verify = false;
|
||||
|
||||
Reference in New Issue
Block a user