From: Evan Cheng Date: Wed, 25 Apr 2007 07:18:20 +0000 (+0000) Subject: Clean up. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=92efbfcd2d2309aedbab4a1269763c3de96219d4;p=oota-llvm.git Clean up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36431 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 0ff989f6744..f66400c535b 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -776,8 +776,6 @@ unsigned RA::getFreePhysReg(LiveInterval *cur) { } } - const TargetRegisterClass* rc = mf_->getSSARegMap()->getRegClass(cur->reg); - unsigned FreeReg = 0; unsigned FreeRegInactiveCount = 0; @@ -793,8 +791,8 @@ unsigned RA::getFreePhysReg(LiveInterval *cur) { << mri_->getName(cur->preference) << "\n"; // Scan for the first available register. - TargetRegisterClass::iterator I = rc->allocation_order_begin(*mf_); - TargetRegisterClass::iterator E = rc->allocation_order_end(*mf_); + TargetRegisterClass::iterator I = RC->allocation_order_begin(*mf_); + TargetRegisterClass::iterator E = RC->allocation_order_end(*mf_); for (; I != E; ++I) if (prt_->isRegAvail(*I)) { FreeReg = *I;