mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-25 14:02:52 +02:00
e7e2ccb9e9
This is similar to the 'tail' marker, except that it guarantees that tail call optimization will occur. It also comes with convervative IR verification rules that ensure that tail call optimization is possible. Reviewers: nicholas Differential Revision: http://llvm-reviews.chandlerc.com/D3240 llvm-svn: 207143
18 lines
407 B
LLVM
18 lines
407 B
LLVM
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
; Check that musttail and tail roundtrip.
|
|
|
|
declare cc8191 void @t1_callee()
|
|
define cc8191 void @t1() {
|
|
; CHECK: tail call cc8191 void @t1_callee()
|
|
tail call cc8191 void @t1_callee()
|
|
ret void
|
|
}
|
|
|
|
declare cc8191 void @t2_callee()
|
|
define cc8191 void @t2() {
|
|
; CHECK: musttail call cc8191 void @t2_callee()
|
|
musttail call cc8191 void @t2_callee()
|
|
ret void
|
|
}
|