summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-03-24 03:46:15 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-03-24 03:46:15 +0000
commit9db158f568699455d052cf3e2579a4811f7c461e (patch)
treef647bbdfe574a8858956db6955467c960d9e7d8b /llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
parente2a0dfad646ca02923d6bc0bb29ae6ec833788de (diff)
downloadbcm5719-llvm-9db158f568699455d052cf3e2579a4811f7c461e.tar.gz
bcm5719-llvm-9db158f568699455d052cf3e2579a4811f7c461e.zip
Bug fix: nextToTry was not being initialized in one case.
llvm-svn: 1974
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp')
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
index ef9f9e45997..810692f7ba0 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
+++ b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
@@ -89,6 +89,8 @@ SchedPriorities::initializeReadyHeap(const SchedGraph* graph)
candsAsHeap.makeHeap();
+ nextToTry = candsAsHeap.begin();
+
#ifdef TEST_HEAP_CONVERSION
cerr << "After heap conversion:\n";
copy(candsAsHeap.begin(), candsAsHeap.end(),
@@ -107,9 +109,9 @@ SchedPriorities::insertReady(const SchedGraphNode* node)
if (SchedDebugLevel >= Sched_PrintSchedTrace)
{
- cerr << " Cycle " << (long)getTime() << ": "
- << " Node " << node->getNodeId() << " is ready; "
- << " Delay = " << (long)getNodeDelayRef(node) << "; Instruction: \n";
+ cerr << " Node " << node->getNodeId() << " will be ready in Cycle "
+ << earliestForNode[node->getNodeId()] << "; "
+ << " Delay = " <<(long)getNodeDelayRef(node) << "; Instruction: \n";
cerr << " " << *node->getMachineInstr() << "\n";
}
}
OpenPOWER on IntegriCloud