Moderate head scratching reveals that this conditional is not needed. If
authorChris Lattner <sabre@nondot.org>
Thu, 18 Nov 2004 05:19:02 +0000 (05:19 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Nov 2004 05:19:02 +0000 (05:19 +0000)
i->start == j->start, then certainly i->end > j->start.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17943 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveInterval.cpp

index 4a1720f7013b616434efdaa969c10dc9824a6428..80a6ed290c713516a154a4d52bde2f9e25692197 100644 (file)
@@ -83,14 +83,10 @@ bool LiveInterval::overlapsFrom(const LiveInterval& other,
   }
 
   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;