summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/ForceStackAlign.ll
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2015-09-11 18:54:38 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2015-09-11 18:54:38 +0000
commitbc497c93f5182757dc220b7bea5bd9801a47138b (patch)
treee5f99720b31fc40c71de9456539f24225bfeb543 /llvm/test/CodeGen/Generic/ForceStackAlign.ll
parent660195a7925bf42b556239deda2883326a0f376b (diff)
downloadbcm5719-llvm-bc497c93f5182757dc220b7bea5bd9801a47138b.tar.gz
bcm5719-llvm-bc497c93f5182757dc220b7bea5bd9801a47138b.zip
Use function attribute "stackrealign" to decide whether stack
realignment should be forced. With this commit, we can now force stack realignment when doing LTO and do so on a per-function basis. Also, add a new cl::opt option "stackrealign" to CommandFlags.h which is used to force stack realignment via llc's command line. Out-of-tree projects currently using -force-align-stack to force stack realignment should make changes to attach the attribute to the functions in the IR. Differential Revision: http://reviews.llvm.org/D11814 llvm-svn: 247450
Diffstat (limited to 'llvm/test/CodeGen/Generic/ForceStackAlign.ll')
-rw-r--r--llvm/test/CodeGen/Generic/ForceStackAlign.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Generic/ForceStackAlign.ll b/llvm/test/CodeGen/Generic/ForceStackAlign.ll
index f798fca06d7..57ccb2c41d7 100644
--- a/llvm/test/CodeGen/Generic/ForceStackAlign.ll
+++ b/llvm/test/CodeGen/Generic/ForceStackAlign.ll
@@ -1,7 +1,7 @@
; Check that stack alignment can be forced. Individual targets should test their
; specific implementation details.
-; RUN: llc < %s -force-align-stack -stack-alignment=32 | FileCheck %s
+; RUN: llc < %s -stackrealign -stack-alignment=32 | FileCheck %s
; CHECK-LABEL: @f
; CHECK-LABEL: @g
OpenPOWER on IntegriCloud