1 ; RUN: opt -passes="ipsccp<func-spec>" -funcspec-min-function-size=3 -S < %s | FileCheck %s
3 ; Checks for callsites that have been annotated with MinSize. No specialisation
6 ; CHECK-NOT: @compute.specialized.1
7 ; CHECK-NOT: @compute.specialized.2
9 define i64 @main(i64 %x, i1 %flag) {
11 br i1 %flag, label %plus, label %minus
14 %tmp0 = call i64 @compute(i64 %x, ptr @plus) #0
18 %tmp1 = call i64 @compute(i64 %x, ptr @minus) #0
22 %tmp2 = phi i64 [ %tmp0, %plus ], [ %tmp1, %minus]
26 define internal i64 @compute(i64 %x, ptr %binop) {
28 %tmp0 = call i64 %binop(i64 %x)
32 define internal i64 @plus(i64 %x) {
38 define internal i64 @minus(i64 %x) {
44 attributes #0 = { minsize optsize }