[PATCH] D96517: [AMDGPU] Optimize SGPR to scratch spilling

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 16:25:21 PST 2021


hliao added a comment.

Shall we optimize the cases where only 1 or 2 SGPRs are to be spilled or reloaded when there's a VGPR scavenged? In this case, we only need one or two loads/stores to spill/reload that SGPR. From the number of LD/ST, that original one (based on broadcast and v_readfirstlane) is still OK but we need less code.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96517



More information about the llvm-commits mailing list