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