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 | f89e6e65770edccd8cc3baf2314b89ba894ffa4f (patch) | |
tree | d23072ca959a4e97ed3a6612856e88cf568fb21c /lib/CodeGen/ScheduleDAG.cpp | |
parent | b8fd41985ffd0f87fc2bbf488ae472c188ee5853 (diff) |
Use the correct Preds and Succs lists in setHeightDirty()
and setDepthDirty(), respectively. This fixes PR3241.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAG.cpp')
-rw-r--r-- | lib/CodeGen/ScheduleDAG.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/ScheduleDAG.cpp b/lib/CodeGen/ScheduleDAG.cpp index f9ec225f3e..59fd341e31 100644 --- a/lib/CodeGen/ScheduleDAG.cpp +++ b/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()); } } |