[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
Wed Dec 13 05:28:24 PST 2023


================
@@ -8703,6 +8703,9 @@ bool SIInstrInfo::isAsmOnlyOpcode(int MCOp) const {
 }
 
 int SIInstrInfo::pseudoToMCOpcode(int Opcode) const {
+  if (SIInstrInfo::isSoftWaitcnt(Opcode))
----------------
jayfoad wrote:

I really don't like adding more special cases here, but I don't have a better suggestion so I suppose it should not block this patch.

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


More information about the llvm-commits mailing list