1; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s 2 3define i32 @f_1(i32 %x) { 4; CHECK-LABEL: @f_1( 5wentry: 6 %cond = icmp ugt i32 %x, 0 7 br i1 %cond, label %return, label %body 8 9body: 10; CHECK: body: 11; CHECK: call i32 @f_1(i32 %y) [ "deopt"() ] 12 %y = add i32 %x, 1 13 %tmp = call i32 @f_1(i32 %y) [ "deopt"() ] 14 ret i32 0 15 16return: 17 ret i32 1 18} 19 20define i32 @f_2(i32 %x) { 21; CHECK-LABEL: @f_2 22 23entry: 24 %cond = icmp ugt i32 %x, 0 25 br i1 %cond, label %return, label %body 26 27body: 28; CHECK: body: 29; CHECK: call i32 @f_2(i32 %y) [ "unknown"() ] 30 %y = add i32 %x, 1 31 %tmp = call i32 @f_2(i32 %y) [ "unknown"() ] 32 ret i32 0 33 34return: 35 ret i32 1 36} 37 38declare void @func() 39 40define void @f_3(i1 %B) personality i8 42 { 41; CHECK-LABEL: @f_3( 42entry: 43 invoke void @func() 44 to label %exit unwind label %merge 45merge: 46 %cs1 = catchswitch within none [label %catch] unwind to caller 47 48catch: 49; CHECK: catch: 50; CHECK: call void @f_3(i1 %B) [ "funclet"(token %cp) ] 51 %cp = catchpad within %cs1 [] 52 call void @f_3(i1 %B) [ "funclet"(token %cp) ] 53 ret void 54 55exit: 56 ret void 57} 58