[llvm] [AMDGPU] Use wavefront scope for single-wave workgroup synchronization (PR #187673)
Barbara Mitic via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 08:16:34 PDT 2026
================
@@ -117,7 +117,8 @@ class SIMemOpInfo final {
bool IsCrossAddressSpaceOrdering = true,
AtomicOrdering FailureOrdering = AtomicOrdering::SequentiallyConsistent,
bool IsVolatile = false, bool IsNonTemporal = false,
- bool IsLastUse = false, bool IsCooperative = false)
+ bool IsLastUse = false, bool IsCooperative = false,
+ const Function *ScopeDemotionFn = nullptr)
----------------
barbara-amd wrote:
Thanks for the suggestion - agreed. `SIMemOpAccess(MMI, ST, F)` now calls `isSingleWavefrontWorkgroup(F)` once and passes that boolean into the SIMemOpInfo `SIMemOpInfo`; no `Function` on `SIMemOpInfo` anymore.
https://github.com/llvm/llvm-project/pull/187673
More information about the llvm-commits
mailing list