Skip to content

Commit 2fe5d5c

Browse files
committed
Replace fragile CHECK-NOT with -implicit-check-not
1 parent de86a29 commit 2fe5d5c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info.ll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
; RUN: opt -mtriple=amdgcn-amd-amdhsa -mcpu=gfx940 -passes='amdgpu-attributor,function(amdgpu-lower-kernel-arguments)' -amdgpu-kernarg-preload-count=16 -S < %s 2>&1 | FileCheck %s
1+
; RUN: opt -mtriple=amdgcn-amd-amdhsa -mcpu=gfx940 -passes='amdgpu-attributor,function(amdgpu-lower-kernel-arguments)' -amdgpu-kernarg-preload-count=16 -S < %s 2>&1 \
2+
; RUN: | FileCheck -implicit-check-not='declare {{.*}} !dbg' %s
3+
4+
; The real test is via the -implicit-check-not, which confirms we do not
5+
; leave behind a declaration which references the same DISubprogram metadata.
26

37
; CHECK: define amdgpu_kernel void @preload_block_count_x{{.*}} !dbg ![[#]]
4-
; CHECK-NOT: declare void @0{{.*}} !dbg ![[#]]
58

69
define amdgpu_kernel void @preload_block_count_x(ptr addrspace(1) %out) !dbg !4 !max_work_group_size !7 {
710
%imp_arg_ptr = call ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr()

0 commit comments

Comments
 (0)