[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)
commit2f65f35c271f39454b3490238b0eb69e57cb5f65
tree286130f9c0a4875346e96ef511f3d6caff1ad719
parenteeae124faf3be90af5248b18f734072d071aa776
[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

llvm-svn: 265886
llvm/include/llvm/CodeGen/MachineFrameInfo.h
llvm/lib/CodeGen/MachineFunction.cpp
llvm/test/CodeGen/X86/stack-align.ll