summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
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')
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedGraph.cpp3
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedGraph.h2
2 files changed, 1 insertions, 4 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)
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraph.h b/llvm/lib/CodeGen/InstrSched/SchedGraph.h
index 441aad179a7..4da761f0f85 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedGraph.h
+++ b/llvm/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;
};
OpenPOWER on IntegriCloud