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
5 declare i32 @__gxx_personality_v0(...)
6 declare i8* @__cxa_begin_catch(i8*)
7 declare void @__cxa_end_catch()
9 define internal void @callee(i1 %cond) personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
11 br i1 %cond, label %if.then, label %if.end
15 to label %invoke.cont unwind label %lpad
21 %0 = landingpad { i8*, i32 }
23 %1 = extractvalue { i8*, i32 } %0, 0
24 %2 = extractvalue { i8*, i32 } %0, 1
28 %3 = call i8* @__cxa_begin_catch(i8* %1)
29 call void @__cxa_end_catch()
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 (...)* @__gxx_personality_v0 to i8*)
51 ; CHECK: invoke void @bar()