2 ; RUN: opt -stats -passes="ipsccp<func-spec>" -S -force-specialization < %s 2>&1 | FileCheck %s
4 ; CHECK: 2 function-specialization - Number of specializations created
6 define i64 @main(i64 %x, i1 %flag) {
8 br i1 %flag, label %plus, label %minus
11 %tmp0 = call i64 @compute(i64 %x, ptr @plus)
15 %tmp1 = call i64 @compute(i64 %x, ptr @minus)
19 %tmp2 = phi i64 [ %tmp0, %plus ], [ %tmp1, %minus]
23 define internal i64 @compute(i64 %x, ptr %binop) {
25 %tmp0 = call i64 %binop(i64 %x)
29 define internal i64 @plus(i64 %x) {
35 define internal i64 @minus(i64 %x) {