1 ; RUN: opt -S -passes=callsite-splitting < %s | FileCheck %s
3 ; Make sure that the callsite is not splitted by checking that there's only one
8 ; CHECK: call void @callee
9 ; CHECK-NOT: call void @callee
11 declare void @foo(ptr %p);
12 declare void @bar(ptr %p);
13 declare dso_local i32 @__gxx_personality_v0(...)
15 define void @caller(ptr %p) personality ptr @__gxx_personality_v0 {
17 %0 = icmp eq ptr %p, null
18 br i1 %0, label %bb1, label %bb2
21 invoke void @foo(ptr %p) to label %end1 unwind label %lpad
24 invoke void @bar(ptr %p) to label %end2 unwind label %lpad
27 %1 = landingpad { ptr, i32 } cleanup
28 call void @callee(ptr %p)
29 resume { ptr, i32 } %1
38 define internal void @callee(ptr %p) {