Skip to content

Commit

Permalink
Fix an anti-dep breaker corner case.
Browse files Browse the repository at this point in the history
<rdar://problem/8959122> illegal register operands for UMULL instruction in cfrac nightly test
I'm stil working on a unit test, but the case is:
rx = movcc rx, r3
r2 = ldr
r2, r3 = umull r2, r2

The anti-dep breaker should not convert this into an illegal instruction:
r2, r2 = umull


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124932 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
atrick committed Feb 5, 2011
1 parent a818d03 commit 278ba1f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/CodeGen/CriticalAntiDepBreaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ CriticalAntiDepBreaker::isNewRegModifiedByRefs(RegRefIter RegRefBegin,
{
for (RegRefIter I = RegRefBegin; I != RegRefEnd; ++I ) {
MachineOperand *MO = I->second;
if (MO->isDef()) continue;
if (MO->getParent()->modifiesRegister(NewReg, TRI))
return true;
}
Expand Down

0 comments on commit 278ba1f

Please sign in to comment.