MI keeps a ptr of TargetInstrDescriptor, use it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32296 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2006-12-07 01:21:59 +00:00
parent 6065f66e7c
commit 51cdcd1972
3 changed files with 7 additions and 4 deletions

View File

@@ -434,7 +434,8 @@ static bool isReDefinedByTwoAddr(MachineInstr *MI, unsigned Reg,
for (unsigned j = i+1; j < e; ++j) {
MachineOperand &MO2 = MI->getOperand(j);
if (MO2.isRegister() && MO2.isUse() && MO2.getReg() == Reg &&
TII->getOperandConstraint(MI->getOpcode(),j,TOI::TIED_TO) == (int)i)
MI->getInstrDescriptor()->
getOperandConstraint(j, TOI::TIED_TO) == (int)i)
return true;
}
}