[llvm] [llvm] Support multiple save/restore points in mir (PR #119357)
Elizaveta Noskova via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 01:41:37 PDT 2025
================
@@ -959,8 +960,17 @@ bool ShrinkWrap::runOnMachineFunction(MachineFunction &MF) {
<< "\nRestore: " << printMBBReference(*Restore) << '\n');
MachineFrameInfo &MFI = MF.getFrameInfo();
- MFI.setSavePoint(Save);
- MFI.setRestorePoint(Restore);
+
+ std::vector<CalleeSavedInfo> CSIVec;
+ SetOfRegs CSRSet = getCurrentCSRs(RS.get());
+ for (unsigned Reg : CSRSet)
----------------
enoskova-sc wrote:
addressed
https://github.com/llvm/llvm-project/pull/119357
More information about the llvm-commits
mailing list