Dynamic stack realignment use of sp register as source/dest register
authorAnton Korobeynikov <asl@math.spbu.ru>
Sun, 6 Dec 2009 22:39:50 +0000 (22:39 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sun, 6 Dec 2009 22:39:50 +0000 (22:39 +0000)
commit7cca606aaa6fee6ff4f548aa3686608b6be1f208
treed31df77e7d6b41f9c521287a790e60eb923633a7
parent08bc2701a22cae61d202c0960a390d8410434e5c
Dynamic stack realignment use of sp register as source/dest register
in "bic sp, sp, #15" leads to unpredicatble behaviour in Thumb2 mode.
Emit the following code instead:
mov r4, sp
bic r4, r4, #15
mov sp, r4

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90724 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseRegisterInfo.cpp
test/CodeGen/Thumb2/large-stack.ll
test/CodeGen/Thumb2/thumb2-spill-q.ll