summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2003-08-28 15:30:40 +0000
committerTanya Lattner <tonic@nondot.org>2003-08-28 15:30:40 +0000
commit89860151b99408191c50fca0c72b6a0bd0380180 (patch)
tree10ac548f1b43051a8864dc885c374e3002062c7a /llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
parent57c70a62e0162b531c395b9babe92ac45066a305 (diff)
downloadbcm5719-llvm-89860151b99408191c50fca0c72b6a0bd0380180.tar.gz
bcm5719-llvm-89860151b99408191c50fca0c72b6a0bd0380180.zip
Moved index into BB to common graph class because its needed by ModuloSchedGraph.
llvm-svn: 8174
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched/SchedGraph.cpp')
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedGraph.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
index 86c9c4557b2..9de04343648 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
+++ b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
@@ -44,8 +44,7 @@ struct ValueToDefVecMap: public hash_map<const Value*, RefVec> {
SchedGraphNode::SchedGraphNode(unsigned NID, MachineBasicBlock *mbb,
int indexInBB, const TargetMachine& Target)
- : SchedGraphNodeCommon(NID), origIndexInBB(indexInBB), MBB(mbb),
- MI(mbb ? (*mbb)[indexInBB] : 0) {
+ : SchedGraphNodeCommon(NID,indexInBB), MBB(mbb), MI(mbb ? (*mbb)[indexInBB] : 0) {
if (MI) {
MachineOpCode mopCode = MI->getOpCode();
latency = Target.getInstrInfo().hasResultInterlock(mopCode)
OpenPOWER on IntegriCloud