diff options
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZISelLowering.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp index 24de52850771..a5e6c906453f 100644 --- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp @@ -1500,16 +1500,8 @@ SDValue SystemZTargetLowering::LowerFormalArguments( assert(VA.isMemLoc() && "Argument not register or memory"); // Create the frame index object for this incoming parameter. - // FIXME: Pre-include call frame size in the offset, should not - // need to manually add it here. - int64_t ArgSPOffset = VA.getLocMemOffset(); - if (Subtarget.isTargetXPLINK64()) { - auto &XPRegs = - Subtarget.getSpecialRegisters<SystemZXPLINK64Registers>(); - ArgSPOffset += XPRegs.getCallFrameSize(); - } - int FI = - MFI.CreateFixedObject(LocVT.getSizeInBits() / 8, ArgSPOffset, true); + int FI = MFI.CreateFixedObject(LocVT.getSizeInBits() / 8, + VA.getLocMemOffset(), true); // Create the SelectionDAG nodes corresponding to a load // from this parameter. Unpromoted ints and floats are |