[AMDGPU] Remove GFX12 encoding hack (#78702)

This is no longer needed now that we have implemented GFX12 encoding for
all instructions.
This commit is contained in:
Jay Foad 2024-01-19 12:19:29 +00:00 committed by GitHub
parent 955417ade2
commit 80ccc72ec7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9136,12 +9136,6 @@ int SIInstrInfo::pseudoToMCOpcode(int Opcode) const {
int MCOp = AMDGPU::getMCOpcode(Opcode, Gen);
// TODO-GFX12: Remove this.
// Hack to allow some GFX12 codegen tests to run before all the encodings are
// implemented.
if (MCOp == (uint16_t)-1 && Gen == SIEncodingFamily::GFX12)
MCOp = AMDGPU::getMCOpcode(Opcode, SIEncodingFamily::GFX11);
// -1 means that Opcode is already a native instruction.
if (MCOp == -1)
return Opcode;