[llvm] [AMDGPU] Scale the frame register in place when lowering scalar frame indices (PR #221972)
Pankaj Dwivedi via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 05:27:24 PDT 2026
================
@@ -610,14 +611,17 @@ bool SILowerSGPRSpills::run(MachineFunction &MF) {
MadeChange = true;
}
- if (SpilledToVirtVGPRLanes) {
+ // Frame index elimination may need the register to keep SCC alive across an
+ // SGPR spill to memory, and nothing can free one up after this point.
+ if (SpilledToVirtVGPRLanes || TFI->mayNeedExecCopyForScalarFrameIndex(MF)) {
----------------
PankajDwivedi-25 wrote:
I have updated the patch.
https://github.com/llvm/llvm-project/pull/221972
More information about the llvm-commits
mailing list