1 ; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S | FileCheck %s
3 declare dso_local void @bar()
4 declare dso_local i32 @__CxxFrameHandler3(...)
6 define internal void @callee(i1 %cond) personality ptr @__CxxFrameHandler3 {
8 br i1 %cond, label %if.then, label %if.end
12 to label %invoke.cont unwind label %ehcleanup
18 %0 = cleanuppad within none []
19 cleanupret from %0 unwind label %catch.dispatch
22 %1 = catchswitch within none [label %catch] unwind to caller
25 %2 = catchpad within %1 [ptr null, i32 64, ptr null]
26 catchret from %2 to label %catchret.dest
38 define internal void @caller(i1 %cond) {
39 ; CHECK-LABEL: define {{.*}} @caller
44 ; CHECK-NEXT: call void @callee.1.{{.*}}()
45 call void @callee(i1 %cond)
49 ; CHECK-LABEL: define {{.*}} @callee.1.{{.*}}() personality ptr @__CxxFrameHandler3
50 ; CHECK: invoke void @bar()
52 ; CHECK-NEXT: cleanupret
55 ; CHECK-NEXT: catchret