1 ; RUN: opt < %s -skip-partial-inlining-cost-analysis -partial-inliner -S | FileCheck %s
2 ; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S | FileCheck %s
4 declare dso_local void @bar()
5 declare dso_local i32 @__CxxFrameHandler3(...)
7 define internal void @callee(i1 %cond) personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*) {
9 br i1 %cond, label %if.then, label %if.end
13 to label %invoke.cont unwind label %ehcleanup
19 %0 = cleanuppad within none []
20 cleanupret from %0 unwind label %catch.dispatch
23 %1 = catchswitch within none [label %catch] unwind to caller
26 %2 = catchpad within %1 [i8* null, i32 64, i8* null]
27 catchret from %2 to label %catchret.dest
39 define internal void @caller(i1 %cond) {
40 ; CHECK-LABEL: define {{.*}} @caller
45 ; CHECK-NEXT: call void @callee.1.{{.*}}()
46 call void @callee(i1 %cond)
50 ; CHECK-LABEL: define {{.*}} @callee.1.{{.*}}() personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
51 ; CHECK: invoke void @bar()
53 ; CHECK-NEXT: cleanupret
56 ; CHECK-NEXT: catchret