[llvm] [AMDGPU] Preserve LDS waits when demoting single-wave workgroup scope to wavefront (PR #207473)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 00:00:33 PDT 2026
================
@@ -149,6 +149,11 @@ class SIMemOpInfo final {
bool IsLastUse = false;
bool IsCooperative = false;
bool IsAVNone = false;
+ /// True if a workgroup-scope operation was demoted to wavefront scope because
+ /// the workgroup fits in a single wave. Such a demotion drops workgroup-scope
+ /// LDS waits that are still required for correctness (see
+ /// insertDemotedWorkgroupLDSWait).
----------------
Pierre-vh wrote:
Then the demotion itself is not correct in the first place, or we need a new scope between wavefront and workgroup.
https://github.com/llvm/llvm-project/pull/207473
More information about the llvm-commits
mailing list