forked from OSchip/llvm-project
Bug fix: nextToTry was not being initialized in one case.
llvm-svn: 1974
This commit is contained in:
parent
e2a0dfad64
commit
9db158f568
|
@ -89,6 +89,8 @@ SchedPriorities::initializeReadyHeap(const SchedGraph* graph)
|
||||||
|
|
||||||
candsAsHeap.makeHeap();
|
candsAsHeap.makeHeap();
|
||||||
|
|
||||||
|
nextToTry = candsAsHeap.begin();
|
||||||
|
|
||||||
#ifdef TEST_HEAP_CONVERSION
|
#ifdef TEST_HEAP_CONVERSION
|
||||||
cerr << "After heap conversion:\n";
|
cerr << "After heap conversion:\n";
|
||||||
copy(candsAsHeap.begin(), candsAsHeap.end(),
|
copy(candsAsHeap.begin(), candsAsHeap.end(),
|
||||||
|
@ -107,9 +109,9 @@ SchedPriorities::insertReady(const SchedGraphNode* node)
|
||||||
|
|
||||||
if (SchedDebugLevel >= Sched_PrintSchedTrace)
|
if (SchedDebugLevel >= Sched_PrintSchedTrace)
|
||||||
{
|
{
|
||||||
cerr << " Cycle " << (long)getTime() << ": "
|
cerr << " Node " << node->getNodeId() << " will be ready in Cycle "
|
||||||
<< " Node " << node->getNodeId() << " is ready; "
|
<< earliestForNode[node->getNodeId()] << "; "
|
||||||
<< " Delay = " << (long)getNodeDelayRef(node) << "; Instruction: \n";
|
<< " Delay = " <<(long)getNodeDelayRef(node) << "; Instruction: \n";
|
||||||
cerr << " " << *node->getMachineInstr() << "\n";
|
cerr << " " << *node->getMachineInstr() << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue