summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PostRASchedulerList.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-09-06 12:10:17 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-09-06 12:10:17 +0000
commite3c9d23bea79492a9970ebfc1e7a8cfc806e1a85 (patch)
treedb87163e7c0882a35082a927b93b776ac1029b7d /llvm/lib/CodeGen/PostRASchedulerList.cpp
parentb986b8ffe76a7fb87f59c2c20801f81d0fa3a524 (diff)
downloadbcm5719-llvm-e3c9d23bea79492a9970ebfc1e7a8cfc806e1a85.tar.gz
bcm5719-llvm-e3c9d23bea79492a9970ebfc1e7a8cfc806e1a85.zip
It's a bool, so treat it like one. Fixes a MSVC warning.
llvm-svn: 81112
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r--llvm/lib/CodeGen/PostRASchedulerList.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp
index f487bd5d7b1..e1491256fe1 100644
--- a/llvm/lib/CodeGen/PostRASchedulerList.cpp
+++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp
@@ -987,7 +987,7 @@ void SchedulePostRATDList::ListScheduleTopDown() {
// In any cycle where we can't schedule any instructions, we must
// stall or emit a noop, depending on the target.
- bool CycleInstCnt = 0;
+ bool CycleHasInsts = false;
// While Available queue is not empty, grab the node with the highest
// priority. If it is not ready put it back. Schedule the node.
@@ -1045,7 +1045,7 @@ void SchedulePostRATDList::ListScheduleTopDown() {
if (FoundSUnit) {
ScheduleNodeTopDown(FoundSUnit, CurCycle);
HazardRec->EmitInstruction(FoundSUnit);
- CycleInstCnt++;
+ CycleHasInsts = true;
// If we are using the target-specific hazards, then don't
// advance the cycle time just because we schedule a node. If
@@ -1056,7 +1056,7 @@ void SchedulePostRATDList::ListScheduleTopDown() {
++CurCycle;
}
} else {
- if (CycleInstCnt > 0) {
+ if (CycleHasInsts) {
DEBUG(errs() << "*** Finished cycle " << CurCycle << '\n');
HazardRec->AdvanceCycle();
} else if (!HasNoopHazards) {
@@ -1076,7 +1076,7 @@ void SchedulePostRATDList::ListScheduleTopDown() {
}
++CurCycle;
- CycleInstCnt = 0;
+ CycleHasInsts = false;
}
}
OpenPOWER on IntegriCloud