[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveIntervals.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Fri Jan 16 14:18:01 PST 2004


Changes in directory llvm/include/llvm/CodeGen:

LiveIntervals.h updated: 1.10 -> 1.11

---
Log message:

Fold open interval ends handling into
LiveIntervals::Interval::expiredAt() and simplify regalloc code.


---
Diffs of the changes:  (+1 -1)

Index: llvm/include/llvm/CodeGen/LiveIntervals.h
diff -u llvm/include/llvm/CodeGen/LiveIntervals.h:1.10 llvm/include/llvm/CodeGen/LiveIntervals.h:1.11
--- llvm/include/llvm/CodeGen/LiveIntervals.h:1.10	Fri Jan 16 10:06:59 2004
+++ llvm/include/llvm/CodeGen/LiveIntervals.h	Fri Jan 16 14:17:05 2004
@@ -57,7 +57,7 @@
             }
 
             bool expiredAt(unsigned index) const {
-                return end() <= index;
+                return end() <= (index + 1);
             }
 
             bool liveAt(unsigned index) const;





More information about the llvm-commits mailing list