diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-08-22 21:59:26 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-08-22 21:59:26 +0000 |
| commit | 2d9bb65b3dee3d84a523f043b6059bce2a4a1032 (patch) | |
| tree | a39fce08ce3ce54169beeb4149fc349c91e4fc5b /llvm/test/CodeGen/Thumb2 | |
| parent | af74250ec00c8c324109e8513030e10b480c23a3 (diff) | |
| download | bcm5719-llvm-2d9bb65b3dee3d84a523f043b6059bce2a4a1032.tar.gz bcm5719-llvm-2d9bb65b3dee3d84a523f043b6059bce2a4a1032.zip | |
ARM / x86_64 varargs: Don't save regparms in prologue without va_start
There's no need to do this if the user doesn't call va_start. In the
future, we're going to have thunks that forward these register
parameters with musttail calls, and they won't need these spills for
handling va_start.
Most of the test suite changes are adding va_start calls to existing
tests to keep things working.
llvm-svn: 216294
Diffstat (limited to 'llvm/test/CodeGen/Thumb2')
| -rw-r--r-- | llvm/test/CodeGen/Thumb2/2009-08-06-SpDecBug.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Thumb2/2009-08-06-SpDecBug.ll b/llvm/test/CodeGen/Thumb2/2009-08-06-SpDecBug.ll index c8eac8d4d09..59c23673211 100644 --- a/llvm/test/CodeGen/Thumb2/2009-08-06-SpDecBug.ll +++ b/llvm/test/CodeGen/Thumb2/2009-08-06-SpDecBug.ll @@ -13,6 +13,7 @@ entry: ; CHECK-NOT: mov sp, r7 ; CHECK: add sp, #8 call void @__gcov_flush() nounwind + call void @llvm.va_start(i8* null) br i1 undef, label %bb5, label %bb bb: ; preds = %bb, %entry @@ -27,3 +28,5 @@ bb5: ; preds = %bb, %entry declare hidden void @__gcov_flush() declare i32 @execvp(i8*, i8**) nounwind + +declare void @llvm.va_start(i8*) nounwind |

