1 ; RUN: opt < %s -passes=ipsccp -S | FileCheck %s
6 define internal i32 @testf(i1 %c) {
8 br i1 %c, label %if.cond, label %if.end
11 br i1 undef, label %if.then, label %if.end
13 if.then: ; preds = %entry, %if.then
16 if.end: ; preds = %if.then1, %entry
20 ; CHECK-LABEL: @test1(
21 ; CHECK: ret i32 undef
23 define internal i32 @test1(i1 %c) {
27 if.then: ; preds = %entry, %if.then
28 %call = call i32 @testf(i1 %c)
29 %res = icmp eq i32 %call, 10
30 br i1 %res, label %ret1, label %ret2
32 ret1: ; preds = %if.then, %entry
35 ret2: ; preds = %if.then, %entry
40 ; CHECK-NEXT: %res = call i32 @test1(
41 ; CHECK-NEXT: ret i32 99
43 define i32 @main(i1 %c) {
44 %res = call i32 @test1(i1 %c)