[clang] [Clang] Disable verifier passes by default in NewPM CodeGen (PR #208178)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 8 02:29:03 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-codegen
Author: Alexis Engelke (aengelke)
<details>
<summary>Changes</summary>
By default, we shouldn't add expensive verifier passes to the pipeline.
This causes a substantial perf regression compared to the legacy PM.
---
Full diff: https://github.com/llvm/llvm-project/pull/208178.diff
1 Files Affected:
- (modified) clang/lib/CodeGen/BackendUtil.cpp (+1)
``````````diff
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index e33480f6c6416..f33026426e815 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -1301,6 +1301,7 @@ void EmitAssemblyHelper::RunCodegenPipelineNewPM(
CGSCCAnalysisManager CGAM;
ModuleAnalysisManager MAM;
CGPassBuilderOption Opt = getCGPassBuilderOption();
+ Opt.DisableVerify = !CodeGenOpts.VerifyModule;
MachineModuleInfo MMI(TM.get());
PassInstrumentationCallbacks PIC;
PipelineTuningOptions PTOptions;
``````````
</details>
https://github.com/llvm/llvm-project/pull/208178
More information about the cfe-commits
mailing list