X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FInstrSched%2FSchedGraph.cpp;h=00b48d537d3eee8089fb54d58f2dd5fd1ee442b6;hb=551ccae044b0ff658fe629dd67edd5ffe75d10e8;hp=9688f3930bb01199c08956a342d3735754771267;hpb=954da37bb492b519f5c31dc360f2a142567e08b4;p=oota-llvm.git diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index 9688f3930bb..00b48d537d3 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/lib/CodeGen/InstrSched/SchedGraph.cpp @@ -15,13 +15,14 @@ #include "SchedGraph.h" #include "llvm/Function.h" -#include "llvm/iOther.h" -#include "llvm/CodeGen/MachineCodeForInstruction.h" +#include "llvm/Instructions.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetMachine.h" +#include "../../Target/SparcV9/MachineCodeForInstruction.h" #include "../../Target/SparcV9/SparcV9RegInfo.h" -#include "Support/STLExtras.h" +#include "../../Target/SparcV9/SparcV9InstrInfo.h" +#include "llvm/ADT/STLExtras.h" #include namespace llvm { @@ -107,7 +108,7 @@ SchedGraph::~SchedGraph() { void SchedGraph::dump() const { std::cerr << " Sched Graph for Basic Block: " << MBB.getBasicBlock()->getName() - << " (" << MBB.getBasicBlock() << ")" + << " (" << *MBB.getBasicBlock() << ")" << "\n\n Actual Root nodes: "; for (SchedGraphNodeCommon::const_iterator I = graphRoot->beginOutEdges(), E = graphRoot->endOutEdges(); @@ -561,7 +562,7 @@ void SchedGraph::buildNodesForBB(const TargetMachine& target, unsigned i = 0; for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); I != E; ++I, ++i) - if (!mii.isDummyPhiInstr(I->getOpcode())) { + if (I->getOpcode() != V9::PHI) { SchedGraphNode* node = new SchedGraphNode(getNumNodes(), &MBB, i, target); noteGraphNodeForInstr(I, node); @@ -694,7 +695,7 @@ void SchedGraphEdge::print(std::ostream &os) const { os<< "Control Dep"; break; case SchedGraphEdge::ValueDep: - os<< "Reg Value " << val; + os<< "Reg Value " << *val; break; case SchedGraphEdge::MemoryDep: os<< "Memory Dep";