Skip to content

Commit 515c3bd

Browse files
authored
[AMDGPU] Stop handling soft waitcnts in pseudoToMCOpcode. NFC. (#172278)
Since #87539 all soft waitcnts should have been promoted by SIInsertWaitcnts.
1 parent 57aab63 commit 515c3bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10221,7 +10221,8 @@ static bool isRenamedInGFX9(int Opcode) {
1022110221
}
1022210222

1022310223
int SIInstrInfo::pseudoToMCOpcode(int Opcode) const {
10224-
Opcode = SIInstrInfo::getNonSoftWaitcntOpcode(Opcode);
10224+
assert(Opcode == (int)SIInstrInfo::getNonSoftWaitcntOpcode(Opcode) &&
10225+
"SIInsertWaitcnts should have promoted soft waitcnt instructions!");
1022510226

1022610227
unsigned Gen = subtargetEncodingFamily(ST);
1022710228

0 commit comments

Comments
 (0)