blob: d858907d7247be865b9e2e6106ca5b91ede9803e [file] [log] [blame]
Chandler Carruth5da53432012-07-02 18:37:59 +00001; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
John McCall51fbfc92011-06-14 03:02:05 +00002
3; Check that intrinsics aren't added to the call graph
4
Pete Cooper67cf9a72015-11-19 05:56:52 +00005declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
John McCall51fbfc92011-06-14 03:02:05 +00006
7define void @f(i8* %out, i8* %in) {
Pete Cooper67cf9a72015-11-19 05:56:52 +00008 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %out, i8* %in, i32 100, i32 4, i1 false)
John McCall51fbfc92011-06-14 03:02:05 +00009 ret void
10}
11
12; CHECK: Call graph node for function: 'f'
Stephen Lin6dd347b2013-07-13 22:00:58 +000013; CHECK-NOT: calls function 'llvm.memcpy.p0i8.p0i8.i32'