[llvm] [AMDGPU] Support partial and empty WWM pools for SGPR spills (PR #213491)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 07:39:15 PDT 2026
================
@@ -35,6 +35,11 @@ static cl::opt<bool>
EnablePreallocateSGPRSpillVGPRs("amdgpu-prealloc-sgpr-spill-vgprs",
cl::init(false), cl::Hidden);
+bool llvm::isPreallocateSGPRSpillVGPRsEnabled(const MachineFunction &MF) {
+ return EnablePreallocateSGPRSpillVGPRs ||
+ MF.getFunction().hasFnAttribute("amdgpu-prealloc-sgpr-spill-vgprs");
----------------
shiltian wrote:
Well, interestingly, this attribute is not documented, nor actually consumed by the backend. I'll remove it.
https://github.com/llvm/llvm-project/pull/213491
More information about the llvm-commits
mailing list