[CodeGen] Take SPAdj into account for STATEPOINT liveness args
authorThan McIntosh <thanm@google.com>
Mon, 26 Nov 2018 16:16:09 +0000 (16:16 +0000)
committerThan McIntosh <thanm@google.com>
Mon, 26 Nov 2018 16:16:09 +0000 (16:16 +0000)
commitb9e4852c92c0fb5cf3ab21d5a9ef3805758233b8
treefba37fe3714f5282d1ce23c27446bf1ad0a5aacc
parent20883fc20fa3d04c3f524c653f532fbd50e9f4ee
[CodeGen] Take SPAdj into account for STATEPOINT liveness args

Summary:
STATEPOINT records its args' locations on stack relative to SP.
If the SP is changed, take that into account.

This patch authored by Cherry Zhang <cherryyz@google.com>.

Reviewers: thanm, reames

Reviewed By: reames

Subscribers: reames, llvm-commits

Differential Revision: https://reviews.llvm.org/D53603

llvm-svn: 347569
llvm/lib/CodeGen/PrologEpilogInserter.cpp
llvm/test/CodeGen/X86/statepoint-stackmap-format.ll