25 lines · plain
1; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s2 3; CHECK: tail call void @callee0()4; CHECK: notail call void @callee1()5 6define void @foo1(i32 %a) {7entry:8 %tobool = icmp eq i32 %a, 09 br i1 %tobool, label %if.else, label %if.then10 11if.then:12 call void @callee0()13 br label %if.end14 15if.else:16 notail call void @callee1()17 br label %if.end18 19if.end:20 ret void21}22 23declare void @callee0()24declare void @callee1()25