[llvm] 515c3bd - [AMDGPU] Stop handling soft waitcnts in pseudoToMCOpcode. NFC. (#172278)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 15 03:34:00 PST 2025
Author: Jay Foad
Date: 2025-12-15T11:33:55Z
New Revision: 515c3bdda00b274e6ba69d7ea9947fbf6b3d07b5
URL: https://github.com/llvm/llvm-project/commit/515c3bdda00b274e6ba69d7ea9947fbf6b3d07b5
DIFF: https://github.com/llvm/llvm-project/commit/515c3bdda00b274e6ba69d7ea9947fbf6b3d07b5.diff
LOG: [AMDGPU] Stop handling soft waitcnts in pseudoToMCOpcode. NFC. (#172278)
Since #87539 all soft waitcnts should have been promoted by
SIInsertWaitcnts.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index 3e334aa08337e..9d189515f2bbb 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -10221,7 +10221,8 @@ static bool isRenamedInGFX9(int Opcode) {
}
int SIInstrInfo::pseudoToMCOpcode(int Opcode) const {
- Opcode = SIInstrInfo::getNonSoftWaitcntOpcode(Opcode);
+ assert(Opcode == (int)SIInstrInfo::getNonSoftWaitcntOpcode(Opcode) &&
+ "SIInsertWaitcnts should have promoted soft waitcnt instructions!");
unsigned Gen = subtargetEncodingFamily(ST);
More information about the llvm-commits
mailing list