summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PostRASchedulerList.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-20 01:26:25 +0000
committerDan Gohman <gohman@apple.com>2008-11-20 01:26:25 +0000
commit4ce15e12b9a5c3d8ca43334fef159dfb98a0c94e (patch)
treed0ef994eec6801c00901b4231d3146e3924d3b3f /llvm/lib/CodeGen/PostRASchedulerList.cpp
parentc8b2fe1eeda436a9a855ac9ffc34a3ec9f5b1ac8 (diff)
downloadbcm5719-llvm-4ce15e12b9a5c3d8ca43334fef159dfb98a0c94e.tar.gz
bcm5719-llvm-4ce15e12b9a5c3d8ca43334fef159dfb98a0c94e.zip
Factor out the code for verifying the work of the scheduler,
extend it a bit, and make use of it in all schedulers, to ensure consistent checking. llvm-svn: 59689
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r--llvm/lib/CodeGen/PostRASchedulerList.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp
index 3a31eaa09b6..a2ad4e356a3 100644
--- a/llvm/lib/CodeGen/PostRASchedulerList.cpp
+++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp
@@ -229,18 +229,7 @@ void SchedulePostRATDList::ListScheduleTopDown() {
}
#ifndef NDEBUG
- // Verify that all SUnits were scheduled.
- bool AnyNotSched = false;
- for (unsigned i = 0, e = SUnits.size(); i != e; ++i) {
- if (SUnits[i].NumPredsLeft != 0) {
- if (!AnyNotSched)
- cerr << "*** List scheduling failed! ***\n";
- SUnits[i].dump(this);
- cerr << "has not been scheduled!\n";
- AnyNotSched = true;
- }
- }
- assert(!AnyNotSched);
+ VerifySchedule(/*isBottomUp=*/false);
#endif
}
OpenPOWER on IntegriCloud