Fix small bug in isMoveInstr -> COPY translation

llvm-svn: 108013
This commit is contained in:
Jakob Stoklund Olesen 2010-07-09 20:55:49 +00:00
parent 7a7b55eb67
commit b5c899d11b
1 changed files with 4 additions and 3 deletions

View File

@ -192,9 +192,10 @@ bool LiveIntervals::conflictsWithPhysReg(const LiveInterval &li,
if (tii_->isMoveInstr(MI, SrcReg, DstReg, SrcSubReg, DstSubReg))
if (SrcReg == li.reg || DstReg == li.reg)
continue;
if (MI.isCopy() && MI.getOperand(0).getReg() == li.reg &&
MI.getOperand(1).getReg() == li.reg)
continue;
if (MI.isCopy())
if (MI.getOperand(0).getReg() == li.reg ||
MI.getOperand(1).getReg() == li.reg)
continue;
// Check for operands using reg
for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {