1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Moved index into BB to common graph class because its needed by ModuloSchedGraph.

llvm-svn: 8174
This commit is contained in:
Tanya Lattner 2003-08-28 15:30:40 +00:00
parent 0438742d12
commit 7ce05c067d
2 changed files with 1 additions and 4 deletions

View File

@ -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)

View File

@ -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;
};