mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -294,7 +294,7 @@ void swift::performLLVMOptimizations(const IRGenOptions &Opts,
|
||||
PrintPassOpts.Indent = DebugPassStructure;
|
||||
PrintPassOpts.SkipAnalyses = DebugPassStructure;
|
||||
StandardInstrumentations SI(Module->getContext(), DebugPassStructure,
|
||||
/*VerifyEach*/ false, PrintPassOpts);
|
||||
Opts.VerifyEach, PrintPassOpts);
|
||||
SI.registerCallbacks(PIC, &MAM);
|
||||
|
||||
PassBuilder PB(TargetMachine, PTO, PGOOpt, &PIC);
|
||||
|
||||
Reference in New Issue
Block a user