[llvm] [AMDGPU] Track DS prefetch flush points on single-path loop. (PR #227274)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 04:18:17 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-amdgpu

Author: Vikash Gupta (vg0204)

<details>
<summary>Changes</summary>

On `GFX12+`, the DS prefetch preheader flush tracked flush points only in a single-block loop. Walk the loop in issue order when each block has one in-loop successor, and use that order for the same tracking. A loop with an in-loop branch is unchanged.

---
Full diff: https://github.com/llvm/llvm-project/pull/227274.diff


2 Files Affected:

- (modified) llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp (+46-12) 
- (added) llvm/test/CodeGen/AMDGPU/waitcnt-loop-ds-prefetch-multiblock.mir (+98) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


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


More information about the llvm-commits mailing list