[llvm] [AMDGPU] Only treat unconditional branches as implicit XCNT drains (PR #219206)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 08:40:27 PDT 2026


jayfoad wrote:

> The root cause is that SIInsertWaitcnts assumes any branch implicitly drains XCNT, but on gfx1250 xcnt is only drained by a real PC change, A conditional branch that falls through does not change the PC and therefore does not drain XCNT.

Are you sure?? The information I have is that any branch instruction drains XCNT, even a not-taken conditional branch. Unless there is some change that I have not heard about.

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


More information about the llvm-commits mailing list