[PATCH] D132436: [AMDGPU][SIFrameLowering] Unify custom SGPR spill saves and restores (NFC)
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 23 08:56:42 PDT 2022
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.h:30-37
+// A CSR SGPR value can be preserved inside a callee using one of the following
+// methods.
+// 1. Copy to an unused scratch SGPR.
+// 2. Spill to a VGPR lane.
+// 3. Spill to memory via. a scratch VGPR.
+// class CustomSGPRSaveInfo represents the save/restore method used for an SGPR
+// at function prolog/epilog.
----------------
Don't see why this needs to pollute SIRegisterInfo. Belongs in MFI or maybe FrameLowering
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132436/new/
https://reviews.llvm.org/D132436
More information about the llvm-commits
mailing list