[llvm] [AMDGPU] Make globally-addressable-scratch opt-in (PR #189555)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 1 00:41:53 PDT 2026
================
@@ -827,6 +831,11 @@ unsigned GCNSubtarget::getNSAThreshold(const MachineFunction &MF) const {
return NSAThreshold;
}
+bool GCNSubtarget::isGloballyAddressableScratchEnabled() const {
+ return HasGloballyAddressableScratchSupport &&
+ EnableGloballyAddressableScratch;
----------------
Pierre-vh wrote:
How would that work ? We need to check both for the HW capability (`HasGloballyAddressableScratchSupport`) and the CL opt
https://github.com/llvm/llvm-project/pull/189555
More information about the llvm-commits
mailing list