1 ; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S | FileCheck %s
4 declare i32 @__gxx_personality_v0(...)
5 declare ptr @__cxa_begin_catch(ptr)
6 declare void @__cxa_end_catch()
8 define internal void @callee(i1 %cond) personality ptr @__gxx_personality_v0 {
10 br i1 %cond, label %if.then, label %if.end
14 to label %invoke.cont unwind label %lpad
20 %0 = landingpad { ptr, i32 }
22 %1 = extractvalue { ptr, i32 } %0, 0
23 %2 = extractvalue { ptr, i32 } %0, 1
27 %3 = call ptr @__cxa_begin_catch(ptr %1)
28 call void @__cxa_end_catch()
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 @__gxx_personality_v0
50 ; CHECK: invoke void @bar()