1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -tailcallelim -S | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; CHECK: tail call void @callee0() 4*9880d681SAndroid Build Coastguard Worker; CHECK: notail call void @callee1() 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine void @foo1(i32 %a) { 7*9880d681SAndroid Build Coastguard Workerentry: 8*9880d681SAndroid Build Coastguard Worker %tobool = icmp eq i32 %a, 0 9*9880d681SAndroid Build Coastguard Worker br i1 %tobool, label %if.else, label %if.then 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Workerif.then: 12*9880d681SAndroid Build Coastguard Worker call void @callee0() 13*9880d681SAndroid Build Coastguard Worker br label %if.end 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerif.else: 16*9880d681SAndroid Build Coastguard Worker notail call void @callee1() 17*9880d681SAndroid Build Coastguard Worker br label %if.end 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Workerif.end: 20*9880d681SAndroid Build Coastguard Worker ret void 21*9880d681SAndroid Build Coastguard Worker} 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Workerdeclare void @callee0() 24*9880d681SAndroid Build Coastguard Workerdeclare void @callee1() 25