diff options
| author | Dan Gohman <gohman@apple.com> | 2008-11-21 00:10:42 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-11-21 00:10:42 +0000 |
| commit | 47d1a214a7013d12140a0c4972d7ba761150dfd4 (patch) | |
| tree | 7a1410fcc02d16a18f1412a21ce0b79d81f517a2 /lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | |
| parent | 66c75aaa028683c389c55b377ee2411b61081677 (diff) | |
Change these schedulers to not emit no-ops. It turns out that
the RR scheduler actually does look at latency values, but it
doesn't use a hazard recognizer so it has no way to know when
a no-op is needed, as opposed to just stalling and incrementing
the cycle count.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp index 023ebf3b55..5993bcd7fe 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp @@ -577,9 +577,7 @@ void ScheduleDAGFast::ListScheduleBottomUp() { } NotReady.clear(); - if (!CurSU) - Sequence.push_back(0); - else + if (CurSU) ScheduleNodeBottomUp(CurSU, CurCycle); ++CurCycle; } |
