From 8dc9982e2e65fa2a2105c31d389f09bae7e5fc7c Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Thu, 28 Aug 2003 15:30:40 +0000 Subject: Moved index into BB to common graph class because its needed by ModuloSchedGraph. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8174 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/InstrSched/SchedGraph.cpp | 3 +-- lib/CodeGen/InstrSched/SchedGraph.h | 2 -- lib/Target/SparcV9/InstrSched/SchedGraph.cpp | 3 +-- lib/Target/SparcV9/InstrSched/SchedGraph.h | 2 -- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index 86c9c4557b..9de0434364 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/lib/CodeGen/InstrSched/SchedGraph.cpp @@ -44,8 +44,7 @@ struct ValueToDefVecMap: public hash_map { 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) diff --git a/lib/CodeGen/InstrSched/SchedGraph.h b/lib/CodeGen/InstrSched/SchedGraph.h index 441aad179a..4da761f0f8 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.h +++ b/lib/CodeGen/InstrSched/SchedGraph.h @@ -26,7 +26,6 @@ class RefVec; class SchedGraphNode : public SchedGraphNodeCommon { - int origIndexInBB; // original position of machine instr in BB MachineBasicBlock *MBB; const MachineInstr *MI; @@ -46,7 +45,6 @@ public: bool isDummyNode() const { return (MI == NULL); } MachineBasicBlock &getMachineBasicBlock() const { return *MBB; } - int getOrigIndexInBB() const { return origIndexInBB; } void print(std::ostream &os) const; }; diff --git a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp index 86c9c4557b..9de0434364 100644 --- a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp +++ b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp @@ -44,8 +44,7 @@ struct ValueToDefVecMap: public hash_map { 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) diff --git a/lib/Target/SparcV9/InstrSched/SchedGraph.h b/lib/Target/SparcV9/InstrSched/SchedGraph.h index 441aad179a..4da761f0f8 100644 --- a/lib/Target/SparcV9/InstrSched/SchedGraph.h +++ b/lib/Target/SparcV9/InstrSched/SchedGraph.h @@ -26,7 +26,6 @@ class RefVec; class SchedGraphNode : public SchedGraphNodeCommon { - int origIndexInBB; // original position of machine instr in BB MachineBasicBlock *MBB; const MachineInstr *MI; @@ -46,7 +45,6 @@ public: bool isDummyNode() const { return (MI == NULL); } MachineBasicBlock &getMachineBasicBlock() const { return *MBB; } - int getOrigIndexInBB() const { return origIndexInBB; } void print(std::ostream &os) const; }; -- cgit v1.2.3