[llvm] [AMDGPU][SIInsertWaitcnts] Do not add s_waitcnt when the counters are known to be 0 already (PR #72830)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 06:41:45 PST 2023


Juan Manuel MARTINEZ =?utf-8?q?CAAMAÑO?= <juamarti at amd.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/72830 at github.com>


================
@@ -26,74 +26,105 @@
 
 ---
 name:            tbuffer_store1
+machineFunctionInfo:
+  isEntryFunction: true
 body:             |
   bb.0:
-    ; CHECK-LABEL: name: tbuffer_store1
-    ; CHECK: S_WAITCNT 0
-    ; CHECK-NEXT: TBUFFER_STORE_FORMAT_XYZW_OFFSET_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, killed renamable $sgpr4, 42, 117, 0, 0, implicit $exec
-    ; CHECK-NEXT: S_ENDPGM 0
+    ; OPT-LABEL: name: tbuffer_store1
----------------
jayfoad wrote:

This looks wrong now - no RUN lines use OPT/NOOPT prefixes.

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


More information about the llvm-commits mailing list