1 ; RUN: opt < %s -ipsccp -S | FileCheck %s
6 define internal i32 @testf() {
8 br i1 undef, label %if.then, label %if.end
10 if.then: ; preds = %entry, %if.then
13 if.end: ; preds = %if.then1, %entry
17 ; CHECK-LABEL: @test1(
18 ; CHECK: ret i32 undef
20 define internal i32 @test1() {
24 if.then: ; preds = %entry, %if.then
25 %call = call i32 @testf()
26 %res = icmp eq i32 %call, 10
27 br i1 %res, label %ret1, label %ret2
29 ret1: ; preds = %if.then, %entry
32 ret2: ; preds = %if.then, %entry
37 ; CHECK-NEXT: %res = call i32 @test1()
38 ; CHECK-NEXT: ret i32 99
41 %res = call i32 @test1()