From cf72e7f8547076a5b3d74aa8bfc311253558d4da Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Sat, 24 Jul 2004 11:44:15 +0000 Subject: Change std::map into a std::map. This saves some space and removes the pointer indirection caused by following the pointer. llvm-svn: 15167 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp') 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); } } -- cgit v1.2.3