aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/InstrSched/SchedPriorities.cpp8
-rw-r--r--lib/Target/SparcV9/InstrSched/SchedPriorities.cpp8
2 files changed, 10 insertions, 6 deletions
diff --git a/lib/CodeGen/InstrSched/SchedPriorities.cpp b/lib/CodeGen/InstrSched/SchedPriorities.cpp
index ef9f9e4..810692f 100644
--- a/lib/CodeGen/InstrSched/SchedPriorities.cpp
+++ b/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";
}
}
diff --git a/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp b/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp
index ef9f9e4..810692f 100644
--- a/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp
+++ b/lib/Target/SparcV9/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";
}
}