blob: 3d941039edb7399352285df3ee39c69febe442f3 [file] [log] [blame]
Chandler Carruth5da53432012-07-02 18:37:59 +00001; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
Chandler Carruth4c660f72016-03-10 11:24:11 +00002; RUN: opt < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s
John McCall51fbfc92011-06-14 03:02:05 +00003
4; Check that intrinsics aren't added to the call graph
5
Daniel Neilson1e687242018-01-19 17:13:12 +00006declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i1)
John McCall51fbfc92011-06-14 03:02:05 +00007
8define void @f(i8* %out, i8* %in) {
Daniel Neilson1e687242018-01-19 17:13:12 +00009 call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %out, i8* align 4 %in, i32 100, i1 false)
John McCall51fbfc92011-06-14 03:02:05 +000010 ret void
11}
12
13; CHECK: Call graph node for function: 'f'
Stephen Lin6dd347b2013-07-13 22:00:58 +000014; CHECK-NOT: calls function 'llvm.memcpy.p0i8.p0i8.i32'