commit | 3b02cbe75224d91899e91a7688cac3052be4e516 | [log] [tgz] |
---|---|---|
author | Alkis Evlogimenos <alkis@evlogimenos.com> | Fri Jan 16 20:17:05 2004 +0000 |
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | Fri Jan 16 20:17:05 2004 +0000 |
tree | eb7b7d8a604a52504186837a02b9cef22ce644bd | |
parent | 1893a05b28bf03e0ded1ed651cc1d71c7854ad93 [diff] [blame] |
Fold open interval ends handling into LiveIntervals::Interval::expiredAt() and simplify regalloc code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10894 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/LiveIntervalAnalysis.h b/lib/CodeGen/LiveIntervalAnalysis.h index 89c7237..dd521a4 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.h +++ b/lib/CodeGen/LiveIntervalAnalysis.h
@@ -57,7 +57,7 @@ } bool expiredAt(unsigned index) const { - return end() <= index; + return end() <= (index + 1); } bool liveAt(unsigned index) const;