diff options
author | Tanya Lattner <tonic@nondot.org> | 2003-08-25 22:42:20 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2003-08-25 22:42:20 +0000 |
commit | cc85d4544f66c59fa9073a7149fdb74c823c7563 (patch) | |
tree | 8f19a1798f1a19d50c5241a951fd0c119828f7c4 /llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp | |
parent | 275e3eb16e9e35d3bcbd3aa928c272e3a456ca3d (diff) | |
download | bcm5719-llvm-cc85d4544f66c59fa9073a7149fdb74c823c7563.tar.gz bcm5719-llvm-cc85d4544f66c59fa9073a7149fdb74c823c7563.zip |
First version of SchedGraph common class and refactoring of SchedGraph.
llvm-svn: 8148
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp')
-rw-r--r-- | llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp index b60a33bcfdb..20c0f8217ac 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp +++ b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp @@ -59,7 +59,7 @@ SchedPriorities::computeDelays(const SchedGraph* graph) for (SchedGraphNode::const_iterator E=node->beginOutEdges(); E != node->endOutEdges(); ++E) { - cycles_t sinkDelay = getNodeDelay((*E)->getSink()); + cycles_t sinkDelay = getNodeDelay((SchedGraphNode*)(*E)->getSink()); nodeDelay = std::max(nodeDelay, sinkDelay + (*E)->getMinDelay()); } } @@ -71,7 +71,7 @@ SchedPriorities::computeDelays(const SchedGraph* graph) void SchedPriorities::initializeReadyHeap(const SchedGraph* graph) { - const SchedGraphNode* graphRoot = graph->getRoot(); + const SchedGraphNode* graphRoot = (const SchedGraphNode*)graph->getRoot(); assert(graphRoot->getMachineInstr() == NULL && "Expect dummy root"); // Insert immediate successors of dummy root, which are the actual roots @@ -137,7 +137,7 @@ SchedPriorities::issuedReadyNodeAt(cycles_t curTime, for (SchedGraphNode::const_iterator E=node->beginOutEdges(); E != node->endOutEdges(); ++E) { - cycles_t& etime = getEarliestReadyTimeForNodeRef((*E)->getSink()); + cycles_t& etime = getEarliestReadyTimeForNodeRef((SchedGraphNode*)(*E)->getSink()); etime = std::max(etime, curTime + (*E)->getMinDelay()); } } |