[llvm-commits] CVS: llvm/lib/CodeGen/LiveInterval.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 17 21:19:16 PST 2004
Changes in directory llvm/lib/CodeGen:
LiveInterval.cpp updated: 1.16 -> 1.17
---
Log message:
Moderate head scratching reveals that this conditional is not needed. If
i->start == j->start, then certainly i->end > j->start.
---
Diffs of the changes: (+0 -4)
Index: llvm/lib/CodeGen/LiveInterval.cpp
diff -u llvm/lib/CodeGen/LiveInterval.cpp:1.16 llvm/lib/CodeGen/LiveInterval.cpp:1.17
--- llvm/lib/CodeGen/LiveInterval.cpp:1.16 Wed Nov 17 22:02:11 2004
+++ llvm/lib/CodeGen/LiveInterval.cpp Wed Nov 17 23:19:02 2004
@@ -83,14 +83,10 @@
}
while (i != ie && j != je) {
- if (i->start == j->start)
- return true;
-
if (i->start > j->start) {
std::swap(i, j);
std::swap(ie, je);
}
- assert(i->start < j->start);
if (i->end > j->start)
return true;
More information about the llvm-commits
mailing list