[clang] 38aa43f - [Clang] Disable verifier passes by default in NewPM CodeGen (#208178)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 8 07:59:25 PDT 2026
Author: Alexis Engelke
Date: 2026-07-08T16:59:20+02:00
New Revision: 38aa43fd96dc15092246a94c8a45c1c0a78217cc
URL: https://github.com/llvm/llvm-project/commit/38aa43fd96dc15092246a94c8a45c1c0a78217cc
DIFF: https://github.com/llvm/llvm-project/commit/38aa43fd96dc15092246a94c8a45c1c0a78217cc.diff
LOG: [Clang] Disable verifier passes by default in NewPM CodeGen (#208178)
By default, we shouldn't add expensive verifier passes to the pipeline.
This causes a substantial perf regression compared to the legacy PM.
Added:
Modified:
clang/lib/CodeGen/BackendUtil.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 971cb409de3ca..2b755fa916e55 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -1302,6 +1302,7 @@ void EmitAssemblyHelper::RunCodegenPipelineNewPM(
CGSCCAnalysisManager CGAM;
ModuleAnalysisManager MAM;
CGPassBuilderOption Opt = getCGPassBuilderOption();
+ Opt.DisableVerify = !CodeGenOpts.VerifyModule;
MachineModuleInfo MMI(TM.get());
PassInstrumentationCallbacks PIC;
PipelineTuningOptions PTOptions;
More information about the cfe-commits
mailing list