[PATCH] D130784: [AMDGPU] Support LDS spilling

Piotr Sobczak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 06:39:21 PDT 2022


piotr added a comment.

In D130784#3687965 <https://reviews.llvm.org/D130784#3687965>, @arsenm wrote:

> In D130784#3687963 <https://reviews.llvm.org/D130784#3687963>, @JonChesterfield wrote:
>
>> I thought we spilled registers to the stack and promoted some stack memory to LDS. Is there any interaction with promoteAlloca? In particular that pass tries to use LDS up to some occupancy boundary, after which allocating more here should take us over that boundary
>
> These are orthogonal things. The only relation would be promote alloca reduces the available LDS budget available for later spilling

Exactly, if the amount of LDS available at the point of frame lowering is zero, no spill slots will use LDS.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130784/new/

https://reviews.llvm.org/D130784



More information about the llvm-commits mailing list