diff options
| author | Dan Gohman <gohman@apple.com> | 2008-12-20 16:34:57 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-12-20 16:34:57 +0000 |
| commit | bb92a1b8154ac70f907ad9178ecb1ceb3eed4266 (patch) | |
| tree | 9ee552df946ff908c9996bf05f6e0c652da00f1a /llvm/lib/CodeGen | |
| parent | e10c2c32af55dc7a2a52d4af9b17f8d26eef1ecb (diff) | |
| download | bcm5719-llvm-bb92a1b8154ac70f907ad9178ecb1ceb3eed4266.tar.gz bcm5719-llvm-bb92a1b8154ac70f907ad9178ecb1ceb3eed4266.zip | |
Use the correct Preds and Succs lists in setHeightDirty()
and setDepthDirty(), respectively. This fixes PR3241.
llvm-svn: 61276
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/ScheduleDAG.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAG.cpp b/llvm/lib/CodeGen/ScheduleDAG.cpp index f9ec225f3eb..59fd341e31a 100644 --- a/llvm/lib/CodeGen/ScheduleDAG.cpp +++ b/llvm/lib/CodeGen/ScheduleDAG.cpp @@ -126,8 +126,8 @@ void SUnit::setDepthDirty() { WorkList.pop_back(); if (!SU->isDepthCurrent) continue; SU->isDepthCurrent = false; - for (SUnit::const_succ_iterator I = Succs.begin(), - E = Succs.end(); I != E; ++I) + for (SUnit::const_succ_iterator I = SU->Succs.begin(), + E = SU->Succs.end(); I != E; ++I) WorkList.push_back(I->getSUnit()); } } @@ -140,8 +140,8 @@ void SUnit::setHeightDirty() { WorkList.pop_back(); if (!SU->isHeightCurrent) continue; SU->isHeightCurrent = false; - for (SUnit::const_pred_iterator I = Preds.begin(), - E = Preds.end(); I != E; ++I) + for (SUnit::const_pred_iterator I = SU->Preds.begin(), + E = SU->Preds.end(); I != E; ++I) WorkList.push_back(I->getSUnit()); } } |

