Imported Upstream version 5.18.0.234

Former-commit-id: 8071ec1a8c5eaa9be24b41745add19297608001f
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-01-08 08:22:36 +00:00
parent f32dbaf0b2
commit 212f6bafcb
28494 changed files with 359 additions and 3867025 deletions

View File

@ -1,34 +0,0 @@
; RUN: opt < %s -globalopt -S | FileCheck %s
; PR36546
; Check that musttail callee preserves its calling convention
define i32 @test(i32 %a) {
; CHECK: %ca = musttail call i32 @foo(i32 %a)
%ca = musttail call i32 @foo(i32 %a)
ret i32 %ca
}
; CHECK-LABEL: define internal i32 @foo(i32 %a)
define internal i32 @foo(i32 %a) {
ret i32 %a
}
; Check that musttail caller preserves its calling convention
define i32 @test2(i32 %a) {
%ca = call i32 @foo1(i32 %a)
ret i32 %ca
}
; CHECK-LABEL: define internal i32 @foo1(i32 %a)
define internal i32 @foo1(i32 %a) {
; CHECK: %ca = musttail call i32 @foo2(i32 %a)
%ca = musttail call i32 @foo2(i32 %a)
ret i32 %ca
}
; CHECK-LABEL: define internal i32 @foo2(i32 %a)
define internal i32 @foo2(i32 %a) {
ret i32 %a
}