summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-08-01 21:42:05 +0000
committerBill Wendling <isanbard@gmail.com>2013-08-01 21:42:05 +0000
commita5c536e1ee25daef4567e1e2a24b74f373b82011 (patch)
treeddcd932266d4b1d7a4e1f3199352e91454d617af /llvm/lib/Target/ARM
parentd8f4950862aa2efcf0847f7185cdc2af436ff6f8 (diff)
downloadbcm5719-llvm-a5c536e1ee25daef4567e1e2a24b74f373b82011.tar.gz
bcm5719-llvm-a5c536e1ee25daef4567e1e2a24b74f373b82011.zip
Use function attributes to indicate that we don't want to realign the stack.
Function attributes are the future! So just query whether we want to realign the stack directly from the function instead of through a random target options structure. llvm-svn: 187618
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
index 9274baf1198..58c06e392cf 100644
--- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
@@ -323,7 +323,7 @@ bool ARMBaseRegisterInfo::canRealignStack(const MachineFunction &MF) const {
// 1. Dynamic stack realignment is explicitly disabled,
// 2. This is a Thumb1 function (it's not useful, so we don't bother), or
// 3. There are VLAs in the function and the base pointer is disabled.
- if (!MF.getTarget().Options.RealignStack)
+ if (MF.getFunction()->hasFnAttribute("no-realign-stack"))
return false;
if (AFI->isThumb1OnlyFunction())
return false;
OpenPOWER on IntegriCloud