[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:40:04 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:
https://github.com/llvm/llvm-project/pull/70626
https://github.com/llvm/llvm-project/pull/213491
More information about the llvm-commits
mailing list