mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Missed a check.
llvm-svn: 52487
This commit is contained in:
parent
570aa6f801
commit
b12290e31b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user