aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMFrameLowering.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-02-23 13:46:25 +0000
committerHans Wennborg <hans@hanshq.net>2018-02-23 13:46:25 +0000
commit89c35fc44daf4b0a3608da50caaf8ec972565189 (patch)
treea108f6b19465d21ba7f71b76d588faabb9790e44 /llvm/lib/Target/ARM/ARMFrameLowering.cpp
parentc30034e574fb9543fcb37f0e899f254893f5a69b (diff)
downloadllvm-89c35fc44daf4b0a3608da50caaf8ec972565189.zip
llvm-89c35fc44daf4b0a3608da50caaf8ec972565189.tar.gz
llvm-89c35fc44daf4b0a3608da50caaf8ec972565189.tar.bz2
Support for the mno-stack-arg-probe flag
Adds support for this flag. There is also another piece for clang (separate review). More info: https://bugs.llvm.org/show_bug.cgi?id=36221 By Ruslan Nikolaev! Differential Revision: https://reviews.llvm.org/D43107 llvm-svn: 325900
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFrameLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index 4ff864a..f438469a 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
@@ -209,7 +209,8 @@ static bool WindowsRequiresStackProbe(const MachineFunction &MF,
F.getFnAttribute("stack-probe-size")
.getValueAsString()
.getAsInteger(0, StackProbeSize);
- return StackSizeInBytes >= StackProbeSize;
+ return (StackSizeInBytes >= StackProbeSize) &&
+ !F.hasFnAttribute("no-stack-arg-probe");
}
namespace {