mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
R600/SI: Don't assert on exotic operand types
This needs a test, but I'm not sure if it is currently possible and I originally hit it due to a bug. Right now the only global address operands have no reason to be VALU instructions, although it theoretically could be a problem. llvm-svn: 218528
This commit is contained in:
parent
c34ac10b20
commit
48b91b1b68
@ -705,7 +705,7 @@ MachineInstr *SIInstrInfo::commuteInstruction(MachineInstr *MI,
|
||||
|
||||
if (Src1Idx != -1 && !MI->getOperand(Src1Idx).isReg()) {
|
||||
// XXX: Commute instructions with FPImm operands
|
||||
if (NewMI || MI->getOperand(Src1Idx).isFPImm() ||
|
||||
if (NewMI || !MI->getOperand(Src1Idx).isImm() ||
|
||||
(!isVOP2(MI->getOpcode()) && !isVOP3(MI->getOpcode()))) {
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user