diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-06-15 05:35:14 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-06-15 05:35:14 +0000 |
commit | 0272be206a0d1369736dfee456bfa7430ccd5e02 (patch) | |
tree | 8ee9fd669e93d8a2c7b16053d8ff5f28fb317676 /llvm/lib/Target/X86/X86FrameLowering.h | |
parent | bc85ec86560649dc9eeb923dc45ecdedb3f54bbd (diff) | |
download | bcm5719-llvm-0272be206a0d1369736dfee456bfa7430ccd5e02.tar.gz bcm5719-llvm-0272be206a0d1369736dfee456bfa7430ccd5e02.zip |
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
Diffstat (limited to 'llvm/lib/Target/X86/X86FrameLowering.h')
-rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.h | 6 |
1 files changed, 4 insertions, 2 deletions
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<int> + getFrameIndexReferenceFromSP(const MachineFunction &MF, int FI, + unsigned &FrameReg, + bool AllowSPAdjustment) const override; MachineBasicBlock::iterator eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, |