Skip to content

Commit 80ccc72

Browse files
authored
[AMDGPU] Remove GFX12 encoding hack (#78702)
This is no longer needed now that we have implemented GFX12 encoding for all instructions.
1 parent 955417a commit 80ccc72

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9136,12 +9136,6 @@ int SIInstrInfo::pseudoToMCOpcode(int Opcode) const {
91369136

91379137
int MCOp = AMDGPU::getMCOpcode(Opcode, Gen);
91389138

9139-
// TODO-GFX12: Remove this.
9140-
// Hack to allow some GFX12 codegen tests to run before all the encodings are
9141-
// implemented.
9142-
if (MCOp == (uint16_t)-1 && Gen == SIEncodingFamily::GFX12)
9143-
MCOp = AMDGPU::getMCOpcode(Opcode, SIEncodingFamily::GFX11);
9144-
91459139
// -1 means that Opcode is already a native instruction.
91469140
if (MCOp == -1)
91479141
return Opcode;

0 commit comments

Comments
 (0)