Align SP adjustment in function getSPAdjust
authorGuozhi Wei <carrot@google.com>
Mon, 17 Aug 2015 22:36:27 +0000 (22:36 +0000)
committerGuozhi Wei <carrot@google.com>
Mon, 17 Aug 2015 22:36:27 +0000 (22:36 +0000)
commitc8cfff3bc830806762924a898326ece450f6ee09
tree237dc80f7dfacbe3f6906b3e79f2592368a7ac32
parentf201263192683504fc237eec631f347604cd6de8
Align SP adjustment in function getSPAdjust

This commit adds a new function TargetFrameLowering::alignSPAdjust
and calls it from TargetInstrInfo::getSPAdjust. It fixes PR24142.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245253 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetFrameLowering.h
lib/CodeGen/TargetInstrInfo.cpp
lib/Target/ARM/ARMFrameLowering.cpp
test/CodeGen/ARM/align-sp-adjustment.ll [new file with mode: 0644]