1 ; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL | count 5
3 ; With -tailcallopt, CodeGen guarantees a tail call optimization
6 declare fastcc i32 @tailcallee(i32 %a1, i32 %a2, i32 %a3, i32 %a4)
8 define fastcc i32 @tailcaller(i32 %in1, i32 %in2) nounwind {
10 %tmp11 = tail call fastcc i32 @tailcallee(i32 %in1, i32 %in2, i32 %in1, i32 %in2)
14 declare fastcc i8* @alias_callee()
16 define fastcc noalias i8* @noalias_caller() nounwind {
17 %p = tail call fastcc i8* @alias_callee()
21 declare fastcc noalias i8* @noalias_callee()
23 define fastcc i8* @alias_caller() nounwind {
24 %p = tail call fastcc noalias i8* @noalias_callee()
28 declare fastcc i32 @i32_callee()
30 define fastcc i32 @ret_undef() nounwind {
31 %p = tail call fastcc i32 @i32_callee()
35 declare fastcc void @does_not_return()
37 define fastcc i32 @noret() nounwind {
38 tail call fastcc void @does_not_return()