mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[IRGen] Add flags to control LLVM verify-each.
Analogous to -sil-verify-all, the new flags cause LLVM verification to be run after each LLVM optimization pass.
This commit is contained in:
@@ -3235,6 +3235,9 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
if (Args.hasArg(OPT_disable_llvm_verify))
|
||||
Opts.Verify = false;
|
||||
|
||||
Opts.VerifyEach = Args.hasFlag(OPT_enable_llvm_verify_each,
|
||||
OPT_disable_llvm_verify_each, Opts.VerifyEach);
|
||||
|
||||
Opts.EmitStackPromotionChecks |= Args.hasArg(OPT_stack_promotion_checks);
|
||||
if (const Arg *A = Args.getLastArg(OPT_stack_promotion_limit)) {
|
||||
unsigned limit;
|
||||
|
||||
Reference in New Issue
Block a user