1 ; RUN: opt < %s -passes=callsite-splitting -S | FileCheck %s
2 ; RUN: opt < %s -passes='function(callsite-splitting)' -S | FileCheck %s
4 define i32 @callee(ptr, i32, i32) {
8 ; CHECK-LABEL: @test_preds_equal
10 ; CHECK: br i1 %cmp, label %Tail, label %Tail
11 define i32 @test_preds_equal(ptr %a, i32 %v, i32 %p) {
13 %cmp = icmp eq ptr %a, null
14 br i1 %cmp, label %Tail, label %Tail
16 %r = call i32 @callee(ptr %a, i32 %v, i32 %p)
20 define void @fn1(i16 %p1) {
28 ; Unreachable code below
30 for.inc: ; preds = %for.inc
31 br i1 undef, label %for.end6, label %for.inc
33 for.end6: ; preds = %for.inc
34 br i1 undef, label %lor.rhs, label %lor.end
36 lor.rhs: ; preds = %for.end6
39 lor.end: ; preds = %for.end6, %lor.rhs