| commit | 89c35fc44daf4b0a3608da50caaf8ec972565189 | [log] [tgz] |
|---|---|---|
| author | Hans Wennborg <hans@hanshq.net> | Fri Feb 23 13:46:25 2018 +0000 |
| committer | Hans Wennborg <hans@hanshq.net> | Fri Feb 23 13:46:25 2018 +0000 |
| tree | a108f6b19465d21ba7f71b76d588faabb9790e44 | |
| parent | c30034e574fb9543fcb37f0e899f254893f5a69b [diff] [blame] |
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
diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp index ea4bfe7..f49ca11 100644 --- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -369,7 +369,8 @@ F.getFnAttribute("stack-probe-size") .getValueAsString() .getAsInteger(0, StackProbeSize); - return StackSizeInBytes >= StackProbeSize; + return (StackSizeInBytes >= StackProbeSize) && + !F.hasFnAttribute("no-stack-arg-probe"); } bool AArch64FrameLowering::shouldCombineCSRLocalStackBump(