Helps with debugging issues caught by the verifier.
Plumbed through both normal clang compile and ThinLTO.
| Paths 
 |  Differential  D153468  
[clang][LTO] Add flag to run verifier after every pass ClosedPublic Authored by aeubanks on Jun 21 2023, 2:16 PM. 
Details Summary Helps with debugging issues caught by the verifier. Plumbed through both normal clang compile and ThinLTO. 
Diff Detail 
 Event TimelineHerald added projects: Restricted Project, Restricted Project.  ·  View Herald TranscriptJun 21 2023, 2:16 PM 
 aeubanks marked an inline comment as done.Comment Actions update test 
 This revision is now accepted and ready to land.Jun 22 2023, 8:37 AM This revision was landed with ongoing or failed builds.Jun 22 2023, 8:54 AM Closed by commit rGda7f212f4a7a: [clang][LTO] Add flag to run verifier after every pass (authored by aeubanks).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 533627 clang/include/clang/Basic/CodeGenOptions.def
 clang/include/clang/Driver/Options.td
 
 clang/lib/CodeGen/BackendUtil.cpp
 clang/test/CodeGen/verify-each.c
 llvm/include/llvm/LTO/Config.h
 llvm/lib/LTO/LTOBackend.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Huh, really surprised we are never normally running the verifier through clang! How did we hit the verification error you used this to narrow down in the first place?