Clean up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36431 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2007-04-25 07:18:20 +00:00
parent 1e341729dd
commit 92efbfcd2d

View File

@ -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;