From 0272be206a0d1369736dfee456bfa7430ccd5e02 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Wed, 15 Jun 2016 05:35:14 +0000 Subject: Don't force SP-relative addressing for statepoints Summary: ... when the offset is not statically known. Prioritize addresses relative to the stack pointer in the stackmap, but fallback gracefully to other modes of addressing if the offset to the stack pointer is not a known constant. Patch by Oscar Blumberg! Reviewers: sanjoy Subscribers: llvm-commits, majnemer, rnk, sanjoy, thanm Differential Revision: http://reviews.llvm.org/D21259 llvm-svn: 272756 --- llvm/lib/Target/X86/X86FrameLowering.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/X86/X86FrameLowering.h') diff --git a/llvm/lib/Target/X86/X86FrameLowering.h b/llvm/lib/Target/X86/X86FrameLowering.h index 9ec3966af33..192ec0e8b5f 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.h +++ b/llvm/lib/Target/X86/X86FrameLowering.h @@ -100,8 +100,10 @@ public: int getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const override; - int getFrameIndexReferenceFromSP(const MachineFunction &MF, int FI, - unsigned &FrameReg) const override; + Optional + getFrameIndexReferenceFromSP(const MachineFunction &MF, int FI, + unsigned &FrameReg, + bool AllowSPAdjustment) const override; MachineBasicBlock::iterator eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, -- cgit v1.2.3