[llvm-commits] CVS: llvm/lib/CodeGen/InstrSched/SchedGraph.cpp SchedGraph.h
Tanya Brethour
tbrethou at cs.uiuc.edu
Thu Aug 28 10:32:05 PDT 2003
Changes in directory llvm/lib/CodeGen/InstrSched:
SchedGraph.cpp updated: 1.48 -> 1.49
SchedGraph.h updated: 1.33 -> 1.34
---
Log message:
Moved index into BB to common graph class because its needed by ModuloSchedGraph.
---
Diffs of the changes:
Index: llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
diff -u llvm/lib/CodeGen/InstrSched/SchedGraph.cpp:1.48 llvm/lib/CodeGen/InstrSched/SchedGraph.cpp:1.49
--- llvm/lib/CodeGen/InstrSched/SchedGraph.cpp:1.48 Tue Aug 26 21:42:58 2003
+++ llvm/lib/CodeGen/InstrSched/SchedGraph.cpp Thu Aug 28 10:30:40 2003
@@ -44,8 +44,7 @@
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)
Index: llvm/lib/CodeGen/InstrSched/SchedGraph.h
diff -u llvm/lib/CodeGen/InstrSched/SchedGraph.h:1.33 llvm/lib/CodeGen/InstrSched/SchedGraph.h:1.34
--- llvm/lib/CodeGen/InstrSched/SchedGraph.h:1.33 Wed Aug 27 10:12:24 2003
+++ llvm/lib/CodeGen/InstrSched/SchedGraph.h Thu Aug 28 10:30:40 2003
@@ -26,7 +26,6 @@
class SchedGraphNode : public SchedGraphNodeCommon {
- int origIndexInBB; // original position of machine instr in BB
MachineBasicBlock *MBB;
const MachineInstr *MI;
@@ -46,7 +45,6 @@
bool isDummyNode() const { return (MI == NULL); }
MachineBasicBlock &getMachineBasicBlock() const { return *MBB; }
- int getOrigIndexInBB() const { return origIndexInBB; }
void print(std::ostream &os) const;
};
More information about the llvm-commits
mailing list