[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp

Evan Cheng evan.cheng at apple.com
Wed Apr 25 00:18:44 PDT 2007



Changes in directory llvm/lib/CodeGen:

RegAllocLinearScan.cpp updated: 1.143 -> 1.144
---
Log message:

Clean up.

---
Diffs of the changes:  (+2 -4)

 RegAllocLinearScan.cpp |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)


Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.143 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.144
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.143	Tue Apr 17 15:32:26 2007
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp	Wed Apr 25 02:18:20 2007
@@ -776,8 +776,6 @@
     }
   }
 
-  const TargetRegisterClass* rc = mf_->getSSARegMap()->getRegClass(cur->reg);
-
   unsigned FreeReg = 0;
   unsigned FreeRegInactiveCount = 0;
 
@@ -793,8 +791,8 @@
            << 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;






More information about the llvm-commits mailing list