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

Vikram Adve vadve at cs.uiuc.edu
Tue Jul 1 20:25:00 PDT 2003


Changes in directory llvm/lib/CodeGen/RegAlloc:

PhyRegAlloc.cpp updated: 1.96 -> 1.97

---
Log message:

Minor beautification: fold a couple of lines of code.


---
Diffs of the changes:

Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.96 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.97
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.96	Sat May 31 02:32:01 2003
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp	Tue Jul  1 20:24:00 2003
@@ -200,11 +200,10 @@
   if (DEBUG_RA >= RA_DEBUG_Interference)
     cerr << "\n For call inst: " << *MInst;
 
-  ValueSet::const_iterator LIt = LVSetAft->begin();
-
   // for each live var in live variable set after machine inst
   //
-  for ( ; LIt != LVSetAft->end(); ++LIt) {
+  for (ValueSet::const_iterator LIt = LVSetAft->begin(), LEnd = LVSetAft->end();
+       LIt != LEnd; ++LIt) {
 
     //  get the live range corresponding to live var
     //





More information about the llvm-commits mailing list