diff options
| author | David Goodwin <david_goodwin@apple.com> | 2009-11-12 19:08:21 +0000 |
|---|---|---|
| committer | David Goodwin <david_goodwin@apple.com> | 2009-11-12 19:08:21 +0000 |
| commit | da83f7d58b1bfcadb92a5955ae1b7a2c6b6933fe (patch) | |
| tree | 57ee0801ec6bd97795ea41ca2642921c05a879b8 /llvm/lib/CodeGen/ScheduleDAG.cpp | |
| parent | 2904aa9f6e7d04bb135c62be16ffafebe85d4205 (diff) | |
| download | bcm5719-llvm-da83f7d58b1bfcadb92a5955ae1b7a2c6b6933fe.tar.gz bcm5719-llvm-da83f7d58b1bfcadb92a5955ae1b7a2c6b6933fe.zip | |
Rename registers to break output dependencies in addition to anti-dependencies.
llvm-svn: 87015
Diffstat (limited to 'llvm/lib/CodeGen/ScheduleDAG.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/ScheduleDAG.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAG.cpp b/llvm/lib/CodeGen/ScheduleDAG.cpp index 1363a92fed6..6b27db263b2 100644 --- a/llvm/lib/CodeGen/ScheduleDAG.cpp +++ b/llvm/lib/CodeGen/ScheduleDAG.cpp @@ -214,7 +214,10 @@ void SUnit::ComputeDepth(bool IgnoreAntiDep) { unsigned MaxPredDepth = 0; for (SUnit::const_pred_iterator I = Cur->Preds.begin(), E = Cur->Preds.end(); I != E; ++I) { - if (IgnoreAntiDep && (I->getKind() == SDep::Anti)) continue; + if (IgnoreAntiDep && + ((I->getKind() == SDep::Anti) || (I->getKind() == SDep::Output))) + continue; + SUnit *PredSU = I->getSUnit(); if (PredSU->isDepthCurrent) MaxPredDepth = std::max(MaxPredDepth, @@ -248,7 +251,10 @@ void SUnit::ComputeHeight(bool IgnoreAntiDep) { unsigned MaxSuccHeight = 0; for (SUnit::const_succ_iterator I = Cur->Succs.begin(), E = Cur->Succs.end(); I != E; ++I) { - if (IgnoreAntiDep && (I->getKind() == SDep::Anti)) continue; + if (IgnoreAntiDep && + ((I->getKind() == SDep::Anti) || (I->getKind() == SDep::Output))) + continue; + SUnit *SuccSU = I->getSUnit(); if (SuccSU->isHeightCurrent) MaxSuccHeight = std::max(MaxSuccHeight, |

