aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
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
commit1392d6903cff7a770674ddaa8651667c179c5c51 (patch)
treeeed00e2e5f6064b6ccfe161cc88981da4c81ef8f /lib/Target
parent7c7e46ae5fab1b672bb4f4cd5d04884f93f762c4 (diff)
downloadexternal_llvm-1392d6903cff7a770674ddaa8651667c179c5c51.zip
external_llvm-1392d6903cff7a770674ddaa8651667c179c5c51.tar.gz
external_llvm-1392d6903cff7a770674ddaa8651667c179c5c51.tar.bz2
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
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/InstrSched/SchedPriorities.cpp8
1 files changed, 5 insertions, 3 deletions
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";
}
}