diff options
author | Manman Ren <mren@apple.com> | 2013-02-04 23:45:08 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2013-02-04 23:45:08 +0000 |
commit | 91b978e15774039f991cf91048dc4cc74726744b (patch) | |
tree | 620ffd1d626abfce1103611ee2f00457e8d3c8d2 /test/CodeGen/ARM/alloc-no-stack-realign-error.ll | |
parent | f9271ea159b97e2febedcf095c3c4122cb24d077 (diff) |
[Stack Alignment] emit warning instead of a hard error
Per discussion in rdar://13127907, we should emit a hard error only if
people write code where the requested alignment is larger than achievable
and assumes the low bits are zeros. A warning should be good enough when
we are not sure if the source code assumes the low bits are zeros.
rdar://13127907
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/alloc-no-stack-realign-error.ll')
-rw-r--r-- | test/CodeGen/ARM/alloc-no-stack-realign-error.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/ARM/alloc-no-stack-realign-error.ll b/test/CodeGen/ARM/alloc-no-stack-realign-error.ll index 96c00174db..9b4d12ae8a 100644 --- a/test/CodeGen/ARM/alloc-no-stack-realign-error.ll +++ b/test/CodeGen/ARM/alloc-no-stack-realign-error.ll @@ -6,10 +6,10 @@ ; 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 an error. +; will emit a warning. define void @test(<16 x float>* noalias sret %agg.result) nounwind ssp { entry: -; CHECK: Requested Minimal Alignment exceeds the Stack Alignment! +; 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 |