[llvm] [AMDGPU] Allow 0 as min./max. of amdgpu-waves-per-eu (PR #138284)

Lucas Ramirez via llvm-commits llvm-commits at lists.llvm.org
Fri May 2 08:07:35 PDT 2025


lucas-rami wrote:

> Isn't there some processing of the input values in clang?

Not sure where to look, but the following snippet supports 0 as min/max and writes them without processing. It's only the subtarget methods that seem to consider them as invalid.

https://github.com/llvm/llvm-project/blob/abd2c07e390c39830296ee70d4743663b02dc8df/clang/lib/CodeGen/Targets/AMDGPU.cpp#L741-L759

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


More information about the llvm-commits mailing list