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 | b6489f3153926655770e5a0d5b72dbc81a87267f (patch) | |
tree | 936bc1dab71ecc493d373c35cccde8f4ce37b8e4 /lib/CodeGen/InstrSched/SchedPriorities.cpp | |
parent | aa8882a7ad4ff5ca2f6c693b966a2e7f171972d9 (diff) |
First version of SchedGraph common class and refactoring of SchedGraph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSched/SchedPriorities.cpp')
-rw-r--r-- | lib/CodeGen/InstrSched/SchedPriorities.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/InstrSched/SchedPriorities.cpp b/lib/CodeGen/InstrSched/SchedPriorities.cpp index b60a33bcfd..20c0f8217a 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.cpp +++ b/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()); } } |