[llvm] [AMDGPU] SelectionDAG divergence tracking should take into account Target divergency. (PR #144947)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 20 07:04:52 PDT 2025


jayfoad wrote:

I think you would need a test containing something (probably an intrinsic) that is a source of divergence, but with workgroup size set to 1. Then subsequent operations that depend on the result of that intrinsic will actually be uniform, so the compiler can insert readfirstlane and use SALU instructions for them.

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


More information about the llvm-commits mailing list