1; REQUIRES: asserts
2; RUN: opt -S -amdgpu-simplifylib -debug-only=amdgpu-simplifylib -mtriple=amdgcn-unknown-amdhsa -disable-output < %s 2>&1 | FileCheck %s
3
4; CHECK-NOT: AMDIC: try folding   call void @llvm.lifetime.start.p0i8
5; CHECK-NOT: AMDIC: try folding   call void @llvm.lifetime.end.p0i8
6; CHECK-NOT: AMDIC: try folding   call void @llvm.dbg.value
7
8define void @foo(i32 %i) {
9  call void @llvm.lifetime.start.p0i8(i64 1, i8* undef)
10  call void @llvm.lifetime.end.p0i8(i64 1, i8* undef)
11  call void @llvm.dbg.value(metadata i32 undef, metadata !DILocalVariable(name: "1", scope: !2), metadata !DIExpression()), !dbg !3
12  ret void
13}
14
15declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture)
16declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture)
17declare void @llvm.dbg.value(metadata, metadata, metadata)
18
19!llvm.module.flags = !{!1}
20
21!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !DIFile(filename: "1", directory: "1"))
22!1 = !{i32 2, !"Debug Info Version", i32 3}
23!2 = distinct !DISubprogram(unit: !0)
24!3 = !DILocation(line: 1, column: 1, scope: !2)
25