summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-07-24 11:44:15 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-07-24 11:44:15 +0000
commitcf72e7f8547076a5b3d74aa8bfc311253558d4da (patch)
treec1fb1fd887d36390c8e25f9e9387290b0e041f5b /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parent4e0969b50018db5ebb9623ecf79fd732dc77eb62 (diff)
downloadbcm5719-llvm-cf72e7f8547076a5b3d74aa8bfc311253558d4da.tar.gz
bcm5719-llvm-cf72e7f8547076a5b3d74aa8bfc311253558d4da.zip
Change std::map<unsigned, LiveInterval*> into a std::map<unsigned,
LiveInterval>. This saves some space and removes the pointer indirection caused by following the pointer. llvm-svn: 15167
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index 382cff4ad7c..694be5f7f1a 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
@@ -224,9 +224,9 @@ void RA::initIntervalSets()
"interval sets should be empty on initialization");
for (LiveIntervals::iterator i = li_->begin(), e = li_->end(); i != e; ++i){
- unhandled_.push(i->second);
- if (MRegisterInfo::isPhysicalRegister(i->second->reg))
- fixed_.push_back(i->second);
+ unhandled_.push(&i->second);
+ if (MRegisterInfo::isPhysicalRegister(i->second.reg))
+ fixed_.push_back(&i->second);
}
}
OpenPOWER on IntegriCloud