From 9db158f568699455d052cf3e2579a4811f7c461e Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sun, 24 Mar 2002 03:46:15 +0000 Subject: Bug fix: nextToTry was not being initialized in one case. llvm-svn: 1974 --- llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp') 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"; } } -- cgit v1.2.3