mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Bug fix: nextToTry was not being initialized in one case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7c7e46ae5f
commit
1392d6903c
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user