[PATCH] D93067: [AMDGPU] Use multi-dword flat scratch for spilling
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 10 14:28:18 PST 2020
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:750
+ unsigned EltSize,
+ const SIInstrInfo *TII) {
+ bool IsStore = TII->get(LoadStoreOp).mayStore();
----------------
Move TII to first parameter since it behaves like this
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:923
+ Register Sub = IsSubReg
+ ? Register(getSubReg(ValueReg, getSubRegFromChannel(Lane)))
+ : ValueReg;
----------------
Register constructor should be unnecessary?
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:944
- if (!MIB.getInstr()) {
- unsigned FinalReg = SubReg;
+ unsigned RemRegOffset = Lane * 4;
+ unsigned RemEltSize = EltSize - (RemRegOffset - RegOffset);
----------------
Comment what this offset is
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93067/new/
https://reviews.llvm.org/D93067
More information about the llvm-commits
mailing list