[llvm] r218359 - R600/SI: Fix hardcoded and wrong operand numbers.
Matt Arsenault
Matthew.Arsenault at amd.com
Tue Sep 23 19:17:09 PDT 2014
Author: arsenm
Date: Tue Sep 23 21:17:09 2014
New Revision: 218359
URL: http://llvm.org/viewvc/llvm-project?rev=218359&view=rev
Log:
R600/SI: Fix hardcoded and wrong operand numbers.
Also fix leftover debug printing
Modified:
llvm/trunk/lib/Target/R600/SIInstrInfo.cpp
Modified: llvm/trunk/lib/Target/R600/SIInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstrInfo.cpp?rev=218359&r1=218358&r2=218359&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIInstrInfo.cpp Tue Sep 23 21:17:09 2014
@@ -1069,11 +1069,9 @@ bool SIInstrInfo::verifyInstruction(cons
// Verify misc. restrictions on specific instructions.
if (Desc.getOpcode() == AMDGPU::V_DIV_SCALE_F32 ||
Desc.getOpcode() == AMDGPU::V_DIV_SCALE_F64) {
- MI->dump();
-
- const MachineOperand &Src0 = MI->getOperand(2);
- const MachineOperand &Src1 = MI->getOperand(3);
- const MachineOperand &Src2 = MI->getOperand(4);
+ const MachineOperand &Src0 = MI->getOperand(Src0Idx);
+ const MachineOperand &Src1 = MI->getOperand(Src1Idx);
+ const MachineOperand &Src2 = MI->getOperand(Src2Idx);
if (Src0.isReg() && Src1.isReg() && Src2.isReg()) {
if (!compareMachineOp(Src0, Src1) &&
!compareMachineOp(Src0, Src2)) {
More information about the llvm-commits
mailing list