diff options
author | Bob Wilson <bob.wilson@apple.com> | 2013-02-08 20:35:15 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2013-02-08 20:35:15 +0000 |
commit | 8f637adbd383afc2defb5d3f75433b6f2c25d527 (patch) | |
tree | e8a816d5e094d54b01ce0b40f9baeb445cfe5a59 /test | |
parent | b1301e48b5cd40b91d822b32715c75f2e9051aa9 (diff) | |
download | external_llvm-8f637adbd383afc2defb5d3f75433b6f2c25d527.zip external_llvm-8f637adbd383afc2defb5d3f75433b6f2c25d527.tar.gz external_llvm-8f637adbd383afc2defb5d3f75433b6f2c25d527.tar.bz2 |
Revert 172027 and 174336. Remove diagnostics about over-aligned stack objects.
Aside from the question of whether we report a warning or an error when we
can't satisfy a requested stack object alignment, the current implementation
of this is not good. We're not providing any source location in the diagnostics
and the current warning is not connected to any warning group so you can't
control it. We could improve the source location somewhat, but we can do a
much better job if this check is implemented in the front-end, so let's do that
instead. <rdar://problem/13127907>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/alloc-no-stack-realign-error.ll | 19 | ||||
-rw-r--r-- | test/CodeGen/ARM/alloc-no-stack-realign.ll | 2 |
2 files changed, 1 insertions, 20 deletions
diff --git a/test/CodeGen/ARM/alloc-no-stack-realign-error.ll b/test/CodeGen/ARM/alloc-no-stack-realign-error.ll deleted file mode 100644 index 9b4d12a..0000000 --- a/test/CodeGen/ARM/alloc-no-stack-realign-error.ll +++ /dev/null @@ -1,19 +0,0 @@ -; RUN: llc < %s -mtriple=armv7-apple-ios -O0 -realign-stack=0 2>&1 | FileCheck %s - -; rdar://12713765 -@T3_retval = common global <16 x float> zeroinitializer, align 16 - -; If alignment for alloc is smaller than or equal to stack alignment, but the -; preferred type alignment is bigger, the alignment will be clamped. -; If alignment for alloca is bigger than stack alignment, the compiler -; will emit a warning. -define void @test(<16 x float>* noalias sret %agg.result) nounwind ssp { -entry: -; CHECK: warning: Requested alignment exceeds the stack alignment! - %retval = alloca <16 x float>, align 16 - %0 = load <16 x float>* @T3_retval, align 16 - store <16 x float> %0, <16 x float>* %retval - %1 = load <16 x float>* %retval - store <16 x float> %1, <16 x float>* %agg.result, align 16 - ret void -} diff --git a/test/CodeGen/ARM/alloc-no-stack-realign.ll b/test/CodeGen/ARM/alloc-no-stack-realign.ll index 94adc9c..273041d 100644 --- a/test/CodeGen/ARM/alloc-no-stack-realign.ll +++ b/test/CodeGen/ARM/alloc-no-stack-realign.ll @@ -39,7 +39,7 @@ entry: ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #16 ; NO-REALIGN: vst1.64 ; NO-REALIGN: vst1.64 - %retval = alloca <16 x float>, align 4 + %retval = alloca <16 x float>, align 16 %0 = load <16 x float>* @T3_retval, align 16 store <16 x float> %0, <16 x float>* %retval %1 = load <16 x float>* %retval |