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

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 27 05:48:02 PDT 2006



Changes in directory llvm/lib/CodeGen:

LiveIntervalAnalysis.cpp updated: 1.169 -> 1.170
---
Log message:

typo fix


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

 LiveIntervalAnalysis.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.169 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.170
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.169	Fri Aug 25 20:28:16 2006
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp	Sun Aug 27 07:47:48 2006
@@ -202,12 +202,13 @@
 
   for (iterator I = begin(), E = end(); I != E; ++I) {
     LiveInterval &li = I->second;
-    if (MRegisterInfo::isVirtualRegister(li.reg))
-      // If the live interval legnth is essentially zero, i.e. in every live
+    if (MRegisterInfo::isVirtualRegister(li.reg)) {
+      // If the live interval length is essentially zero, i.e. in every live
       // range the use follows def immediately, it doesn't make sense to spill
       // it and hope it will be easier to allocate for this li.
       if (isZeroLengthInterval(&li))
         li.weight = float(HUGE_VAL);
+    }
   }
 
   DEBUG(dump());
@@ -931,6 +932,6 @@
 
 LiveInterval LiveIntervals::createInterval(unsigned reg) {
   float Weight = MRegisterInfo::isPhysicalRegister(reg) ?
-                       (float)HUGE_VAL :0.0F;
+                       (float)HUGE_VAL : 0.0F;
   return LiveInterval(reg, Weight);
 }






More information about the llvm-commits mailing list