From 1e409bfd2adf441b92f84e09706b768513f42c85 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Nov 2004 05:19:02 +0000 Subject: [PATCH] Moderate head scratching reveals that this conditional is not needed. If 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 4a1720f7013..80a6ed290c7 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -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; -- 2.34.1