[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
Evan Cheng
evan.cheng at apple.com
Tue Feb 20 18:27:57 PST 2007
Changes in directory llvm/lib/CodeGen:
LiveIntervalAnalysis.cpp updated: 1.209 -> 1.210
---
Log message:
Out of bound reference.
---
Diffs of the changes: (+2 -2)
LiveIntervalAnalysis.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.209 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.210
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.209 Mon Feb 19 15:49:53 2007
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp Tue Feb 20 20:27:39 2007
@@ -1451,10 +1451,10 @@
/// reg between indexes Start and End.
bool
LiveIntervals::hasRegisterUse(unsigned Reg, unsigned Start, unsigned End) {
- for (unsigned Index = Start+InstrSlots::NUM; Index != End;
+ for (unsigned Index = Start+InstrSlots::NUM; Index < End;
Index += InstrSlots::NUM) {
// Skip deleted instructions
- while (Index != End && !getInstructionFromIndex(Index))
+ while (Index < End && !getInstructionFromIndex(Index))
Index += InstrSlots::NUM;
if (Index >= End) break;
More information about the llvm-commits
mailing list