[llvm] [AMDGPU] Pre-GFX10 does not need added latency for workgroup fences (PR #177157)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 23 05:36:56 PST 2026


================
@@ -375,6 +375,8 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
     return (Generation)Gen;
   }
 
+  bool isGFX10Plus() const { return getGeneration() >= GFX10; }
----------------
arsenm wrote:

If you're going to add something here, add the predicate for the workgroup scope behavior you're adding. Generation checks are bad in general, but if we're going to have them I'd rather leave them as the inlined getGeneration() >= instead of adding all of these "Plus" names 

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


More information about the llvm-commits mailing list