AMDGPU: Remove unnecessary check
If the instruction doesn't have enough operands, it either shouldn't be marked as isCommutable or is malformed. llvm-svn: 248242
This commit is contained in:
parent
d3dd1354a4
commit
f11e7489e1
|
@ -784,10 +784,6 @@ bool SIInstrInfo::expandPostRAPseudo(MachineBasicBlock::iterator MI) const {
|
|||
|
||||
MachineInstr *SIInstrInfo::commuteInstruction(MachineInstr *MI,
|
||||
bool NewMI) const {
|
||||
|
||||
if (MI->getNumOperands() < 3)
|
||||
return nullptr;
|
||||
|
||||
int CommutedOpcode = commuteOpcode(*MI);
|
||||
if (CommutedOpcode == -1)
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in New Issue