diff options
author | Arthur Eubanks <aeubanks@google.com> | 2023-06-21 14:13:05 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2023-06-22 08:51:29 -0700 |
commit | da7f212f4a7ac8d99c9368770b9af3b628fd4e9f (patch) | |
tree | 87be3f2c08ab25fe1fd50bbd0c05adc155e170a1 /llvm/lib/LTO/LTOBackend.cpp | |
parent | 3ea8f2526541884e03d5bd4f4e46f4eb190990b6 (diff) | |
download | llvm-da7f212f4a7ac8d99c9368770b9af3b628fd4e9f.zip llvm-da7f212f4a7ac8d99c9368770b9af3b628fd4e9f.tar.gz llvm-da7f212f4a7ac8d99c9368770b9af3b628fd4e9f.tar.bz2 |
[clang][LTO] Add flag to run verifier after every pass
Helps with debugging issues caught by the verifier.
Plumbed through both normal clang compile and ThinLTO.
Reviewed By: tejohnson
Differential Revision: https://reviews.llvm.org/D153468
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r-- | llvm/lib/LTO/LTOBackend.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp index 667ebb0..4d90779 100644 --- a/llvm/lib/LTO/LTOBackend.cpp +++ b/llvm/lib/LTO/LTOBackend.cpp @@ -259,7 +259,8 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM, ModuleAnalysisManager MAM; PassInstrumentationCallbacks PIC; - StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager); + StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager, + Conf.VerifyEach); SI.registerCallbacks(PIC, &MAM); PassBuilder PB(TM, Conf.PTO, PGOOpt, &PIC); |