[llvm-branch-commits] [llvm] [CodeGen][NPM] Add a target option to control machine verifier enablement at end of default pipelines (PR #176693)

Vikram Hegde via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Mar 31 22:19:18 PDT 2026


vikramRH wrote:

> I think there is a difference in understanding about the motivation of the change here,
> 
> 1. This tries to control the machine verifier being added to the default pipelines (O0, O1...) with or without expensive checks enabled. The primary motivation was several verifier failures that I saw while doing NPM testing downstream. (i.e compiling several ROCm math libraries and applications using the AMDGPU NPM backend with expensive checks disabled).
> 2. Legacy PM does not enable machine verifier as part of default pipelines at all (Only IR verifiers are enabled at specific points). machine verifier would still trip if I try to compile the before said applications with expensive checks enabled compiler.
> 3. When I said the "expensive build checks currenlty being run for the target" in my previous comment, I was referring to the tests run as part of LLVM pre/post merge checks which I think are not exhaustive enough. (I think its just lit tests ?)

As I said here, issue is when the verifier is enabled as part of default pipelines as part of release builds too.

https://github.com/llvm/llvm-project/pull/176693


More information about the llvm-branch-commits mailing list