[llvm] [llvm] Support save/restore point splitting in shrink-wrap (PR #119359)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 18:45:24 PST 2024


================
@@ -29,6 +29,33 @@ using namespace llvm;
 
 namespace {
 
+static int64_t calculateCSRSpillOffsets(MachineFrameInfo &MFI,
+                                        const TargetFrameLowering *TFI,
+                                        int MinCSFI, int FrameIdx) {
+  int LocalAreaOffset = -TFI->getOffsetOfLocalArea();
----------------
arsenm wrote:

Why is this negated instead of using the raw value? Is this assuming the stack grows down? 

https://github.com/llvm/llvm-project/pull/119359


More information about the llvm-commits mailing list