Missed a check.

llvm-svn: 52487
This commit is contained in:
Evan Cheng 2008-06-19 06:17:19 +00:00
parent 570aa6f801
commit b12290e31b

View File

@ -234,7 +234,7 @@ static bool isTwoAddrUse(MachineInstr *UseMI, unsigned Reg) {
const TargetInstrDesc &TID = UseMI->getDesc();
for (unsigned i = 0, e = TID.getNumOperands(); i != e; ++i) {
MachineOperand &MO = UseMI->getOperand(i);
if (MO.getReg() == Reg &&
if (MO.isRegister() && MO.getReg() == Reg &&
(MO.isDef() || TID.getOperandConstraint(i, TOI::TIED_TO) != -1))
// Earlier use is a two-address one.
return true;