summaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2004-07-30 23:36:10 +0000
committerTanya Lattner <tonic@nondot.org>2004-07-30 23:36:10 +0000
commit0a88d2d8b96aa02449afb94761d67c3b59aade5c (patch)
tree461c5847de85d1398be010d0f526e44b64a9c173 /lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp
parent88f8f9226f5e62ad50acf7683d9c2691aa190103 (diff)
downloadllvm-0a88d2d8b96aa02449afb94761d67c3b59aade5c.tar.gz
llvm-0a88d2d8b96aa02449afb94761d67c3b59aade5c.tar.bz2
llvm-0a88d2d8b96aa02449afb94761d67c3b59aade5c.tar.xz
Updated ModuloScheduling. It makes it all the wya through register allocation on the new code!!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp')
-rw-r--r--lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp b/lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp
index dfee1d15be..8ec19dad72 100644
--- a/lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp
+++ b/lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp
@@ -49,12 +49,12 @@ bool MSSchedule::insert(MSchedGraphNode *node, int cycle) {
bool MSSchedule::resourcesFree(MSchedGraphNode *node, int cycle) {
//Get Resource usage for this instruction
- const TargetSchedInfo & msi = node->getParent()->getTarget()->getSchedInfo();
+ const TargetSchedInfo *msi = node->getParent()->getTarget()->getSchedInfo();
int currentCycle = cycle;
bool success = true;
//Get resource usage for this instruction
- InstrRUsage rUsage = msi.getInstrRUsage(node->getInst()->getOpcode());
+ InstrRUsage rUsage = msi->getInstrRUsage(node->getInst()->getOpcode());
std::vector<std::vector<resourceId_t> > resources = rUsage.resourcesByCycle;
//Loop over resources in each cycle and increments their usage count
@@ -101,7 +101,7 @@ bool MSSchedule::resourcesFree(MSchedGraphNode *node, int cycle) {
int oldCycle = cycle;
DEBUG(std::cerr << "Backtrack\n");
//Get resource usage for this instruction
- InstrRUsage rUsage = msi.getInstrRUsage(node->getInst()->getOpcode());
+ InstrRUsage rUsage = msi->getInstrRUsage(node->getInst()->getOpcode());
std::vector<std::vector<resourceId_t> > resources = rUsage.resourcesByCycle;
//Loop over resources in each cycle and increments their usage count