summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2003-08-25 22:42:20 +0000
committerTanya Lattner <tonic@nondot.org>2003-08-25 22:42:20 +0000
commitcc85d4544f66c59fa9073a7149fdb74c823c7563 (patch)
tree8f19a1798f1a19d50c5241a951fd0c119828f7c4 /llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
parent275e3eb16e9e35d3bcbd3aa928c272e3a456ca3d (diff)
downloadbcm5719-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/InstrScheduling.cpp')
-rw-r--r--llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
index ae19a0635e5..00a6a557f2b 100644
--- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
+++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
@@ -1047,8 +1047,8 @@ NodeCanFillDelaySlot(const SchedulingManager& S,
for (SchedGraphNode::const_iterator EI = node->beginInEdges();
EI != node->endInEdges(); ++EI)
- if (! (*EI)->getSrc()->isDummyNode()
- && mii.isLoad((*EI)->getSrc()->getOpCode())
+ if (! ((SchedGraphNode*)(*EI)->getSrc())->isDummyNode()
+ && mii.isLoad(((SchedGraphNode*)(*EI)->getSrc())->getOpCode())
&& (*EI)->getDepType() == SchedGraphEdge::CtrlDep)
return false;
@@ -1065,7 +1065,7 @@ NodeCanFillDelaySlot(const SchedulingManager& S,
bool onlyCDEdgeToBranch = true;
for (SchedGraphNode::const_iterator OEI = node->beginOutEdges();
OEI != node->endOutEdges(); ++OEI)
- if (! (*OEI)->getSink()->isDummyNode()
+ if (! ((SchedGraphNode*)(*OEI)->getSink())->isDummyNode()
&& ((*OEI)->getSink() != brNode
|| (*OEI)->getDepType() != SchedGraphEdge::CtrlDep))
{
OpenPOWER on IntegriCloud