OSDN Git Service

Don't force SP-relative addressing for statepoints
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 15 Jun 2016 05:35:14 +0000 (05:35 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 15 Jun 2016 05:35:14 +0000 (05:35 +0000)
commite9f1be7f564effcae65d3d394e614d6411e3f229
tree1b46b2d563a4c013d82dbbe1efa3085081a7207c
parent4e14c8337b5a0392193227659f004aeeb7fabd23
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272756 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetFrameLowering.h
lib/CodeGen/AsmPrinter/WinException.cpp
lib/CodeGen/PrologEpilogInserter.cpp
lib/Target/X86/X86FrameLowering.cpp
lib/Target/X86/X86FrameLowering.h
test/CodeGen/X86/deopt-bundles.ll