diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-04-25 07:18:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-04-25 07:18:20 +0000 |
commit | 11dc5abde15139cf412d67a86c978edac170f190 (patch) | |
tree | 3ba965b3c1f0b59e75966a8e60fbb5b4e839e77c /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 8cd224e81ce420f4719eb4cfbcd2e77054ce25ac (diff) | |
download | bcm5719-llvm-11dc5abde15139cf412d67a86c978edac170f190.tar.gz bcm5719-llvm-11dc5abde15139cf412d67a86c978edac170f190.zip |
Clean up.
llvm-svn: 36431
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 0ff989f6744..f66400c535b 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/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; |