summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-02-05 02:58:46 +0000
committerAndrew Trick <atrick@apple.com>2011-02-05 02:58:46 +0000
commitf841571404808167fe02f8e93f007e39d3bb309d (patch)
tree36c0d5c88de0651f6db7b235376d70ae1fd7ae5d /llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
parent95e314260e7ae45fb099dc37cfaeeaddda676911 (diff)
downloadbcm5719-llvm-f841571404808167fe02f8e93f007e39d3bb309d.tar.gz
bcm5719-llvm-f841571404808167fe02f8e93f007e39d3bb309d.zip
Fix an anti-dep breaker corner case.
<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 llvm-svn: 124932
Diffstat (limited to 'llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp')
-rw-r--r--llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
index 4817346061f..7b2ce362417 100644
--- a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
+++ b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
@@ -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;
}
OpenPOWER on IntegriCloud