[llvm] [AMDGPU] Do not print `kernel-resource-usage` information on non-kernels (PR #99720)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 20 05:29:22 PDT 2024


================
@@ -144,15 +135,7 @@ define amdgpu_kernel void @empty_kernel() !dbg !7 {
   ret void
 }
 
-; STDERR: remark: foo.cl:52:0: Function Name: empty_func
-; STDERR-NEXT: remark: foo.cl:52:0:     SGPRs: 0
-; STDERR-NEXT: remark: foo.cl:52:0:     VGPRs: 0
-; STDERR-NEXT: remark: foo.cl:52:0:     AGPRs: 0
-; STDERR-NEXT: remark: foo.cl:52:0:     ScratchSize [bytes/lane]: 0
-; STDERR-NEXT: remark: foo.cl:52:0:     Dynamic Stack: False
-; STDERR-NEXT: remark: foo.cl:52:0:     Occupancy [waves/SIMD]: 0
-; STDERR-NEXT: remark: foo.cl:52:0:     SGPRs Spill: 0
-; STDERR-NEXT: remark: foo.cl:52:0:     VGPRs Spill: 0
+; STDERR-NOT: remark: foo.cl:52:0: Function Name: empty_func
----------------
arsenm wrote:

Not checks should be as simple as possible. Just -NOT: remark. Or add -implicit-check-not=remark 

https://github.com/llvm/llvm-project/pull/99720


More information about the llvm-commits mailing list