[llvm] [AMDGPU] Initialize FrameOffsetReg for amdgpu_cs_chain functions (PR #165518)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 17 07:20:47 PST 2025
================
@@ -1408,11 +1408,12 @@ void SIFrameLowering::emitEpilogue(MachineFunction &MF,
LiveUnits.addReg(FramePtrRegScratchCopy);
}
- emitCSRSpillRestores(MF, MBB, MBBI, DL, LiveUnits, FramePtrReg,
+ emitCSRSpillRestores(MF, MBB, MBBI, DL, LiveUnits,
+ FuncInfo->isChainFunction() ? Register() : FramePtrReg,
FramePtrRegScratchCopy);
}
- if (FPSaved) {
+ if (FPSaved && !FuncInfo->isChainFunction()) {
----------------
jofrn wrote:
Yes, they can be merged. Thank you!
https://github.com/llvm/llvm-project/pull/165518
More information about the llvm-commits
mailing list