delete useless functions
add comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6673 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h b/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h
index 7cdfdd9..db3a9a3 100644
--- a/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h
+++ b/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h
@@ -250,9 +250,6 @@
//return wether the BasicBlock 'bb' contains a loop
bool isLoop(const BasicBlock *bb);
- //return this basibBlock contains a loop
- bool isLoop();
-
//return the node for the input instruction
ModuloSchedGraphNode *getGraphNodeForInst(const Instruction *inst) const {
const_iterator onePair = this->find(inst);
@@ -293,11 +290,12 @@
using map_base::begin;
using map_base::end;
- void noteModuloSchedGraphNodeForInst(const Instruction *inst,
- ModuloSchedGraphNode *node)
- {
+ void addHash(const Instruction *inst,
+ ModuloSchedGraphNode *node){
+
assert((*this)[inst] == NULL);
(*this)[inst] = node;
+
}
// Graph builder
@@ -308,10 +306,7 @@
// Build nodes for BasicBlock
void buildNodesforBB(const TargetMachine &target,
- const BasicBlock *bb,
- NodeVec &memNode,
- RegToRefVecMap ®ToRefVecMap,
- ValueToDefVecMap &valueToDefVecMap);
+ const BasicBlock *bb);
//find definitiona and use information for all nodes
void findDefUseInfoAtInstr(const TargetMachine &target,
@@ -329,9 +324,6 @@
//add memory dependence dges
void addMemEdges(const BasicBlock *bb);
- //add dummy edges
- void addDummyEdges();
-
//computer source restrictoin II
int computeResII(const BasicBlock *bb);