1 ; RUN: opt < %s -mtriple=systemz-unknown -mcpu=z15 -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(i8* %Dst)
10 ; CHECK: ++ SZTTI Adding inlining bonus: 150
11 ; CHECK: Inlining {{.*}} Call: call void @leaf_function_B(i8* %Dst, i8* %Src)
13 define void @leaf_function_A(i8* %Dst) {
15 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %Dst, i8* undef, i64 16, i1 false)
19 define void @leaf_function_B(i8* %Dst, i8* %Src) {
21 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %Dst, i8* %Src, i64 16, i1 false)
25 define void @root_function(i8* %Dst, i8* %Src) {
27 call void @leaf_function_A(i8* %Dst)
28 call void @leaf_function_B(i8* %Dst, i8* %Src)
32 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* noalias nocapture writeonly, i8* noalias nocapture readonly, i64, i1 immarg)