1 ; RUN: opt < %s -mtriple=systemz-unknown -mcpu=z15 -passes='cgscc(inline)' -disable-output \
2 ; RUN: -debug-only=inline,systemztti 2>&1 | FileCheck %s
5 ; Check that the inlining threshold is incremented for a function using an
6 ; argument only as a memcpy source.
8 ; CHECK: Inlining calls in: root_function
9 ; CHECK: Inlining {{.*}} Call: call void @leaf_function_A(ptr %Dst)
10 ; CHECK: ++ SZTTI Adding inlining bonus: 150
11 ; CHECK: Inlining {{.*}} Call: call void @leaf_function_B(ptr %Dst, ptr %Src)
13 define void @leaf_function_A(ptr %Dst) {
15 call void @llvm.memcpy.p0.p0.i64(ptr %Dst, ptr undef, i64 16, i1 false)
19 define void @leaf_function_B(ptr %Dst, ptr %Src) {
21 call void @llvm.memcpy.p0.p0.i64(ptr %Dst, ptr %Src, i64 16, i1 false)
25 define void @root_function(ptr %Dst, ptr %Src) {
27 call void @leaf_function_A(ptr %Dst)
28 call void @leaf_function_B(ptr %Dst, ptr %Src)
32 declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg)