OSDN Git Service

[CodeGen] Don't assume that fixed stack objects are aligned in a stack-realigned...
authorCharles Davis <cdavis5x@gmail.com>
Sat, 9 Apr 2016 23:34:42 +0000 (23:34 +0000)
committerCharles Davis <cdavis5x@gmail.com>
Sat, 9 Apr 2016 23:34:42 +0000 (23:34 +0000)
commitc15a9077543f7c29ff9d924654ba91fd07d298ce
treea2ea000ddca919e7834945a9f1857313a62f6d2f
parent7c0a10f79072248cc9e33e6949d7f1b5648286a3
[CodeGen] Don't assume that fixed stack objects are aligned in a stack-realigned function.

Summary:
After we make the adjustment, we can assume that for local allocas, but
not for stack parameters, the return address, or any other fixed stack
object (which has a negative offset and therefore lies prior to the
adjusted SP).

Fixes PR26662.

Reviewers: hfinkel, qcolombet, rnk

Subscribers: rnk, llvm-commits

Differential Revision: http://reviews.llvm.org/D18471

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265886 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineFrameInfo.h
lib/CodeGen/MachineFunction.cpp
test/CodeGen/X86/stack-align.ll